Search code examples
javaeclipsejakarta-eeidejava-6

Glassfish server jdk not found


I am going to setup glassfish with eclipse. Glassfish server has installed with eclipse but now when i tried to run any jsp , it shows this error.

"GlassFish v3 requires a JDK 1.6 and not a JRE. Please add/select the correct JDK in the Server properties 'Runtime Environment' section."

I searched alot and I have seen these 1 , 2 questions too but unable to find the solution. Please can anyone tell me that why this problem is occurring and its step by step solution?
Please keep in mind that i have installed java7 so is this due to java7 as it is asking for jdk1.6.
I am thinking that it would be 1.6 or up versions.
thanks


Solution

  • I have found the solution. Actually the problem was that eclipse was not able to find the jdk as glassfish needs jdk to run files(not only jre). So when i edited this then I am able to run successfully :). This link helped me alot