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

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.

Reference

  1. use a JDK in order to use JSPs for Google App Engine Problem

mkyong

Founder of Mkyong.com, passionate Java and open-source technologies. If you enjoy my tutorials, consider making a donation to these charities.

8 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
Carol
9 years ago

Thanks for sharing

Ityav Nobles
10 years ago

Sir, Seriously i lack worlds to describe you.
But i can say that your tutorials have shape my programming career.
You are at every stop over!

Simon
11 years ago

Thanks!!!

Venice Mark
12 years ago

good job , There are many advantages

moise
12 years ago

It’s work! thanks!

Isaac
13 years ago

thanks

bhavdeep
13 years ago

Thanks for your post. I was getting this error and it is resolved with your fix.

Thank you,
Bhavdeep

Manisha
13 years ago

I set JRE to my Java6, but still i could see same error. Did not work for me,