Skip to main content

Error : PWC6345: There is an error in invoking javac.

5 replies [Last post]
azfnd
Offline
Joined: 2010-03-24

Hi All,
I am using Glassfish v3 bundle with Netbeans 6.8. I have wrote JSP application to read data from MySQL and successfully done. I have created the jdbc-resource and jdbc-connection-pool via IDE. I can run the application with no error at all.

Now I try to start the Glassfish without Netbeans. I can do it with CLI start-domain. The glassfish is running (i can open the admin console). From admin console, I can see the jdbc-resource and jdbc-connection-pool is there. Also the application that I have deployed using Netbeans. But when i try to run the application, i kept getting this error.

org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required.

After reading from some mailing-list, I have put the jdk into my PATH. But still the error is there.

Can somebody give me solution to this?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Major Péter

Hi,

Please check the glassfish/config/asenv.conf file, and make sure, that
under AS_JAVA name is your JDK not JRE.

Regards,
Peter

2010-03-24 11:15 keltezéssel, glassfish@javadesktop.org írta:
> Hi All,
> I am using Glassfish v3 bundle with Netbeans 6.8. I have wrote JSP application to read data from MySQL and successfully done. I have created the jdbc-resource and jdbc-connection-pool via IDE. I can run the application with no error at all.
>
> Now I try to start the Glassfish without Netbeans. I can do it with CLI start-domain. The glassfish is running (i can open the admin console). From admin console, I can see the jdbc-resource and jdbc-connection-pool is there. Also the application that I have deployed using Netbeans. But when i try to run the application, i kept getting this error.
>
> org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required.
>
> After reading from some mailing-list, I have put the jdk into my PATH. But still the error is there.
>
> Can somebody give me solution to this?
> [Message sent by forum member 'azfnd']
>
> http://forums.java.net/jive/thread.jspa?messageID=393453

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

richardss
Offline
Joined: 2010-03-22

I edited bin/asadmin, and changed the JAVA= variable to use the full path to my JDK.

Alternatively, setting AS_JAVA in glassfish/config/asenv.conf should also work and is probably more correct.

Richard

bluesun2
Offline
Joined: 2010-04-07

I got the same problem.

I install glasfish on window xp and I don't see the AS_JAVA variable in the asenv.conf file, but I see it int he asadmin file.

Even after I add the AS_JAVA variable with my jdk path in the asenv.conf file I still got the problem.

Path jdk: C:\Program Files\Java\jdk1.6.0_19
Path asenv.conf: C:\Program Files\sges-v3\glassfish\config

Do I have a syntax error:

AS_JAVA="../../../Java/jdk1.6.0_19"

thank you.

bluesun2
Offline
Joined: 2010-04-07
tuxette
Offline
Joined: 2011-06-28

I have tried many things so far to fix this issue with my Glassfish server when it's running independently from Netbeans, but no solution seems to help me so far.

I'm running it in a Win2k3 machine. Could it be that? Also, isn't there a separate installation for the JavaEE SDK?

I just wanted to clarify that this solution doesn't work for this particular JDK problem; it only addresses an inability to start Glassfish. If you try this solution, you'll still be unable to compile your JSPs. Shame it is publicized everywhere on the net...