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

Helpful? Then DOWNLOAD and RATE my app!

Helpful? Then DOWNLOAD and RATE my app!

Prerequisites

Problem

You are using Eclipse and making a Google App Engine(GAE) project, save changes to some file, and Eclipse barfs out the following error:

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

Solution

The problem is likely that your project is not using JRE1.7 or above. To fix the problem:

  1. Install JRE1.7 following the steps from https://spragucm.wordpress.com/2015/05/11/installing-java-runtime-environment-1-7-jre1-7
  2. Ensure Eclipse is using JRE1.7 by following the steps at https://spragucm.wordpress.com/2015/05/11/updating-the-java-runtime-environment-jre-in-eclipse/
  3. Ensure the specific project is using JRE1.7 by right-clicking the project in Eclipse -> Properties -> Follow the steps from https://spragucm.wordpress.com/2015/05/11/updating-the-java-runtime-environment-jre-in-eclipse/

References

Helpful? Then DOWNLOAD and RATE my app!

Helpful? Then DOWNLOAD and RATE my app!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s