Your project must be configured to use a JDK in order to use JSPs

Problem

Using Eclipse 3.7 + Google Plugin for Eclipse to develop GAE project, when created a .jsp file in “war” directory, Eclipse shows a cross error icon on top of the JSP file.

gae jsp show error icon gae jsp show error icon

In Eclipse problem view, it show “Your project must be configured to use a JDK in order to use JSPs.“.

Solution

To solve it, change your Eclipse’s Installed JRE, and point it to your JDK folder. In Eclipse menu, select Windows -> Preferences -> Java -> Installed JREs, add your JDK folder and checked on it.

P.S JSP need JDK “javac” to compile, which doesn’t exist in JRE.

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