Class not found exception for com / google / appengine / tools / enhancer / Improvement when starting eclipse

I made a new download of Eclipse Juno and installed the Google App Engine SDK. After that, when I start eclipse, I get an error

Could not find main class: com.google.appengine.tools.enhancer.Enhance. The program will exit.

Edit: Looks like there is a Builder that is being added by the Google AppEngine plugin. Eclipse tries to find this "Builder" and fails. I added the path to this builder, which is in the plugins \ com.google.appengine.eclipse.sdkbundle_1.8.3 \ appengine-java-sdk-1.8.3 \ lib for my system class path.

Now i get another error

DataNucleus Enhancer (version 3.1.1): Class Enhancement August 21, 2013 8:48:14 org.datanucleus.metadata.MetaDataManager loadClasses SEVERE: Class "in.chimanrao.model.Account" not found in CLASSPATH. Check your specifications and your CLASSPATH. org.datanucleus.exceptions.ClassNotResolvedException: Class "in.chimanrao.model.Account" not found in CLASSPATH. Check your specifications and your CLASSPATH.

How do I pass the user path to this DataNucleus Enhancer?

+4
source share
2 answers

I solved this by installing JDK 1.7 and making it the default in Eclipse.

If you are working with a database, install the previous version of JDK 7u21, because the latest version has some database problems.

+7
source

As others have noted, you should use JRE1.7 or higher. It is not indicated that you may need to upgrade Eclipse to use 1.7 and then your project. You may also need to remove the previous version of the JRE from the project creation path. Detailing all the steps here is a bit, but I found that the following tutorial includes all the necessary steps:

https://spragucm.wordpress.com/2015/05/11/class-not-found-exception-for-comgoogleappenginetoolsenhancerenhance-when-starting-eclipse/

0
source

Source: https://habr.com/ru/post/1498159/


All Articles