users@glassfish.java.net

Re: java.err.nojdk with Intellij Idea 9.0beta

From: Alexis Moussine-Pouchkine <alexis.mp_at_sun.com>
Date: Sun, 08 Nov 2009 10:21:41 +0100

I suppose you use the ZIP artifact.
glassfish/config/asenv.conf now has everything relative with the
optional AS_JAVA as the only absolute (set by installer).
If no installer use, then AS_JAVA is not set and GlassFish relies on
the user's PATH.
You should try setting AS_JAVA manually

-Alexis

On Nov 8, 2009, at 9:50, Antonio Goncalves wrote:

> Hi,
>
> I'm developping a simple JSP in Intellij Idea 9.0beta and using
> GlassFish v3b70. When I deploy my JSP into GlassFish (from Idea 9) I
> get a :
>
> org.apache.jasper.JasperException: java.err.nojdk
>
> That's because GlassFish needs a JDK to compile the JSP I suppose.
> From what I read I need to setup JAVA_HOME, but this doesn't solve
> my problem. I've tried to set the JAVA_HOME as a Idea environment
> variable or a system variable (under windows), still the same. When
> I check the GlassFish logs I see that it's using the JRE. Of course,
> if I use asadmin to start GlassFish, the variable is set, and
> everything works fine.
>
> Do you know what I could do ? Any config file where I could set ip
> up ?
>
> Thanks,
> Antonio
>
>