GlassFish Server Open Source Edition 18.104.22.168 (build 5) not able to find JDK
Hi, I am using GlassFish Server Open Source Edition 22.214.171.124 (build 5), and I am trying to deploy AffableBean from Oracle samples it deploys fine, but when I try to run I get below error:
org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required
As per research, I have addedd AS_JAVA variable in:
as shown below:
And I restarted server, still I am getting same error. When I try to run javac or java from shell it works fine since I have JAVA_HOME is set, but I don't know why Glassfish is not able to find JDK. BTW I am using Ubuntu 12.0.4 as a Server.
Is there any other configurations should i make to glassfish recognize JDK?