Stop or Restart a previously started Google App Engine local server in Eclipse

  1. In Eclipse, find the Eclipse Console view (looks like below).
  2. If the console view is not showing then select Window -> Show View -> Console
  3. Select the arrow next to the little computer and select the server that is running from the drop-down menu
  4. Select the red square to stop the server
  5. Go to http://localhost:8888 and verify that the page no longer loads.Note: If a page is still showing then repeat the above steps for all of the servers listed in the drop-down menu next to the little computer in the console window. If that still doesn’t work, another application may be using the port so refer to https://spragucm.wordpress.com/2015/05/14/windows-httplocalhost-port-conflict/
  6. To restart, just run the Google App Engine project again (Right click -> Run As ->Web Application)

References

Advertisements

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!