Main Tutorials

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

About Author

author image
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities.

Comments

Subscribe
Notify of
8 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
Carol
7 years ago

Thanks for sharing

Ityav Nobles
8 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
9 years ago

Thanks!!!

Venice Mark
10 years ago

good job , There are many advantages

moise
10 years ago

It’s work! thanks!

Isaac
10 years ago

thanks

bhavdeep
11 years ago

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

Thank you,
Bhavdeep

Manisha
11 years ago

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