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 the Author

author image
mkyong
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

avatar
8 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
8 Comment authors
CarolItyav NoblesSimonVenice Markmoise Recent comment authors
newest oldest most voted
Carol
Guest
Carol

Thanks for sharing

Ityav Nobles
Guest
Ityav Nobles

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
Guest
Simon

Thanks!!!

Venice Mark
Guest
Venice Mark

good job , There are many advantages

moise
Guest
moise

It’s work! thanks!

Isaac
Guest
Isaac

thanks

bhavdeep
Guest
bhavdeep

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

Thank you,
Bhavdeep

Manisha
Guest
Manisha

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