users@glassfish.java.net

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

From: Antonio Goncalves <antonio.mailing_at_gmail.com>
Date: Sun, 8 Nov 2009 13:20:10 +0100

Yes, when I setup the AS_JAVA variable it works in Intellij Idea

Thanks,
Antonio

2009/11/8 Alexis Moussine-Pouchkine <alexis.mp_at_sun.com>

> 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
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>


-- 
--
Antonio Goncalves (antonio.goncalves_at_gmail.com)
Software architect
Web site : www.antoniogoncalves.org
Blog: agoncal.wordpress.com
Feed: feeds2.feedburner.com/AntonioGoncalves
Paris JUG leader : www.parisjug.org
LinkedIn: www.linkedin.com/in/agoncal