aspose file tools*
The moose likes Tomcat and the fly likes environmental variable issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "environmental variable issue" Watch "environmental variable issue" New topic
Author

environmental variable issue

ravi kanth
Ranch Hand

Joined: Jun 04, 2008
Posts: 36
hi all,
can any body give the solution for this problem.
i had set path,classpath and JAVA_HOME.

FROM tomcat browser window
org.apache.jasper.JasperException: Unable to compile class for JSP
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause it showing is..

Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12779
    
    5
1. What operating system?
2. What version of Java? Installed where?
3. What value of JAVA_HOME in your environment settings?

Mine looks like:
JAVA_HOME=c:\JavaMisc\jdk1.6.0

Bill
ravi kanth
Ranch Hand

Joined: Jun 04, 2008
Posts: 36
hai William ,
Thanks for reply.

my os is XP professional.
java version is 1.5
JAVA_HOME value:C:\Program Files\Java\jdk1.5.0_04
and tomcat version is 5.0.28
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

One problem in your JAVA_HOME could be that you have a space in the path.

I know that the path with 'Program Files' is the default installation, but it does not always work, when there are spaces in the path.

Try reinstall your javaSE, and this time put it somewhere without spaces in the path.


Regards, Rene Larsen
Dropbox Invite
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: environmental variable issue