Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
upanshu vaid
Ranch Hand
Posts: 83
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1742
19
Chrome Firefox Browser jQuery Linux MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
upanshu vaid
Ranch Hand
Posts: 83
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1742
19
Chrome Firefox Browser jQuery Linux MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic