App Engine Dev Tips #2 : Use a JDK and not a JRE

It is advisable to use a JDK and not a JRE in your development environment for App Engine applications.

If you plan to use JSP (Java Server Pages) in your application, then you have to use the JDK. Often we setup Eclipse and install the Google Plugin for Eclipse in a hurry and overlook the fact that Eclipse is still using a JRE. The problem manifests itself more when you are trying to deploy the application to a live App Engine instance and the error comes back to you.

To ensure that you are using a JDK, do the following:

  1. Go to Window -> Preferences in Eclipse IDE.
  2. Go to Java -> Installed JREs as shown below:appenginetips-2
  3. Ensure that the selected option is a JDK and not a JRE.

Check out all the App Engine Development Tips.

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s