我重新下载了 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/