wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes org.apache.jasper.JasperException:PWC6345:There is an error in invoking javac. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "org.apache.jasper.JasperException:PWC6345:There is an error in invoking javac." Watch "org.apache.jasper.JasperException:PWC6345:There is an error in invoking javac." New topic
Author

org.apache.jasper.JasperException:PWC6345:There is an error in invoking javac.

upanshu vaid
Ranch Hand

Joined: Sep 07, 2012
Posts: 73

Hi Ranch,
Following error is coming in eclipse when using the default preview server .
org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required.

My JAVA_HOME , path variable are set correctly.

kindly help on this to solve .
Thanks

J. Kevin Robbins
Bartender

Joined: Dec 16, 2010
Posts: 1043
    
  13

Does %JAVA_HOME%\bin contain javac.exe?

Open a command prompt and run "javac". What happens?

Either you installed the JRE instead of the JDK or your JAVA_HOME is not set correctly.


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
upanshu vaid
Ranch Hand

Joined: Sep 07, 2012
Posts: 73

Thanks Kevin,
when i ran javac from command prompt its running fine and my JAVA_HOME is set correctly.As eclipse uses jetty as default server and i have googled that in web.xml we need to configure the servlet tag for jsp to compile ,and my issue now is that there is another webdefault.xml in etc folder but i am not able to loacte it and may be my web.xml is not loading and only webdefault.xml is loading ,and still i am getting the same error.kindly have a look.
TIA
J. Kevin Robbins
Bartender

Joined: Dec 16, 2010
Posts: 1043
    
  13

Agreed, if javac runs okay from the command line, you have the JDK installed. Now it sounds like the issue is the Eclipse configuration. I use Netbeans and Tomcat so I'm not going to be much help there.

I suggest you try our Eclipse forum where the experts on that IDE hang out. Sorry I can't be more help.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5843
    
    7

In Eclipse, look in the Preferences at the Installed JREs and make sure that you have your JDK registered there.

If it is, the next place I would look is at the server configuration within Eclipse. (With more details about what server you mean, we could provided more detailed help.)


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.apache.jasper.JasperException:PWC6345:There is an error in invoking javac.