• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

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

 
Ranch Hand
Posts: 83
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Bartender
Posts: 1810
28
jQuery Netbeans IDE Eclipse IDE Firefox Browser MySQL Database Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1810
28
jQuery Netbeans IDE Eclipse IDE Firefox Browser MySQL Database Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.)
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic