Can’t start the dev server for a Google App Engine Java project on Snow Leopard?

This one was ruining my afternoon until I came across this post on the Google App Engine Issues page. I was running the command to start the dev server from the Google App Engine Java tutorial in Terminal on OS X 10.6. The process looked like it would start fine, but would then immediately stop (as evidenced by the new terminal line after the success message): kevin$ ./appengine-java-sdk/bin/ appengine-java-sdk/demos/guestbook/war
2011-03-16 17:06:59.443 java[8217:a07] [Java CocoaComponent compatibility mode]: Enabled
2011-03-16 17:06:59.444 java[8217:a07] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
Mar 16, 2011 9:07:00 PM info
INFO: Logging to JettyLogger(null) via
Mar 16, 2011 9:07:00 PM readAppEngineWebXml
INFO: Successfully processed /Applications/eclipse/plugins/
Mar 16, 2011 9:07:00 PM readConfigXml
INFO: Successfully processed /Applications/eclipse/plugins/
Mar 16, 2011 5:07:00 PM start
INFO: The server is running at http://localhost:8080/ kevin$      # this is where things start to suck

Long story short, Apple decided to stop maintaining Java on their operating systems. To fix the problem, install the latest version of OpenJDK.

  1. Download this and install it: (most recent as of 3/16/11)
  2. Open your Java Preferences by going to Applications -> Utilities -> Java Preferences
  3. Drag the new Java version (Java SE 7) up above any other Java versions listed

After that you should be able to run the server again.

If you want to fix the problem from within Eclipse, check out Comment 14.

Leave a Reply

Your email address will not be published.

= 3 + 9