java - 启动 Eclipse 时未找到 com/google/appengine/tools/enhancer/Enhance 的类异常

标签 java google-app-engine datanucleus

我重新下载了 Eclipse Juno 并安装了 Google App Engine SDK。 在此之后,每当我开始 eclipse 时,我都会收到错误

Could not find the main class: com.google.appengine.tools.enhancer.Enhance. Program will Exit.

编辑: 看起来有一个由 Google AppEngine 插件添加的构建器。 Eclipse 试图找到这个“Builder”但失败了。 我将驻留在 plugins\com.google.appengine.eclipse.sdkbundle_1.8.3\appengine-java-sdk-1.8.3\lib 中的此构建器的路径添加到我的系统类路径中。

现在我得到一个不同的错误

DataNucleus Enhancer (version 3.1.1) : Enhancement of classes Aug 21, 2013 8:48:14 PM org.datanucleus.metadata.MetaDataManager loadClasses SEVERE: Class "in.chimanrao.model.Account" was not found in the CLASSPATH. Please check your specification and your CLASSPATH. org.datanucleus.exceptions.ClassNotResolvedException: Class "in.chimanrao.model.Account" was not found in the CLASSPATH. Please check your specification and your CLASSPATH.

如何将自定义类路径传递给此 DataNucleus Enhancer?

最佳答案

我通过安装 JDK 1.7 并将其设为 Eclipse 中的默认值解决了这个问题。

如果您使用数据库,请安装以前版本的 JDK 7u21,因为最新版本的数据库存在一些问题。

关于java - 启动 Eclipse 时未找到 com/google/appengine/tools/enhancer/Enhance 的类异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18353918/

相关文章:

java - -server 'default' 在配置文件中是未知服务器

python - 为什么 manage.py syncdb 无法连接到 google cloud sql 数据库?

google-app-engine - 在 Google App Engine 上部署 Tornado

java - Java ArrayList 的描述性统计

java - JDOFatalUserException : Persistence Manager has been closed

java - 当从 WizardsPage1 导航到 2 直至下一页时,如果单击进度栏取消按钮,如何强制用户保持在同一页面上?

java - 如何编译具有 native 功能的 c 文件以通过 JNI 连接?

eclipse - 使用 Tomcat 和 Eclipse 增强 DataNucleus JPA 运行时

java - 无法保存一组非常简单的实体,因为检测到 XG 事务

java - 为什么在 hibernate 中创建的表在停止服务器后被删除?