You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Gustav Wiberg <in...@stammis.com> on 2006/05/03 23:23:54 UTC

Fw: JAVAHOME

 Hi there!

 Se down below. I get that fault when I try to run an ischolar application.

 It seems to be the JAVAHOME-variable that isn't registrered. But where do I
 find that specific variable? (can't find it)
 is jvm and JAVAHOME the same?

 Should this variable point to the JVM-client?

 Best regards
 /Gustav Wibeg
>
>
>
>
> type Exception report
> message
> description The server encountered an internal error () that prevented it 
> from fulfilling this request.
> exception
> 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 
> causeUnable 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)note The full 
> stack trace of the root cause is available in the ApacheTomcat/5.0.28 
> logs. 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Fw: JAVAHOME

Posted by "Seak, Teng-Fong" <se...@yahoo.com>.
    But I think Tomcat doesn't need JDK.  Instead, it needs a JRE to 
which JAVA_HOME, if specified, is pointing.  OTOH, from 1.4.? in windows 
platform, JAVA_HOME is no more declared as environment variable but is 
read from registry, as stated by Marc.

Marc Farrow wrote:
> Also, depending on the Tomcat version (windows installer) the 
> JAVA_HOME is
> actually read from registry and not environment entry.
>
> On 5/3/06, Jacob Fenwick <jf...@mitre.org> wrote:
>>
>> It should point to the location of your JDK.
>> Examples:
>>
>> Windows:
>> set JAVA_HOME=C:\sun-jdk-1.5.0.06
>>
>> Linux:
>> export JAVA_HOME=/opt/sun-jdk-1.5.0.06
>>
>> Gustav Wiberg wrote:
>>
>> > Hi there!
>> >
>> > Se down below. I get that fault when I try to run an ischolar
>> > application.
>> >
>> > It seems to be the JAVAHOME-variable that isn't registrered. But where
>> > do I
>> > find that specific variable? (can't find it)
>> > is jvm and JAVAHOME the same?
>> >
>> > Should this variable point to the JVM-client?
>> >
>> > Best regards
>> > /Gustav Wibeg
>> >
>> >>
>> >>
>> >>
>> >>
>> >> type Exception report
>> >> message
>> >> description The server encountered an internal error () that
>> >> prevented it from fulfilling this request.
>> >> exception
>> >> 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
>> >> causeUnable 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)note The
>> >> full stack trace of the root cause is available in the
>> >> ApacheTomcat/5.0.28 logs.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Fw: JAVAHOME

Posted by Marc Farrow <ma...@gmail.com>.
Also, depending on the Tomcat version (windows installer) the JAVA_HOME is
actually read from registry and not environment entry.

On 5/3/06, Jacob Fenwick <jf...@mitre.org> wrote:
>
> It should point to the location of your JDK.
> Examples:
>
> Windows:
> set JAVA_HOME=C:\sun-jdk-1.5.0.06
>
> Linux:
> export JAVA_HOME=/opt/sun-jdk-1.5.0.06
>
> Gustav Wiberg wrote:
>
> > Hi there!
> >
> > Se down below. I get that fault when I try to run an ischolar
> > application.
> >
> > It seems to be the JAVAHOME-variable that isn't registrered. But where
> > do I
> > find that specific variable? (can't find it)
> > is jvm and JAVAHOME the same?
> >
> > Should this variable point to the JVM-client?
> >
> > Best regards
> > /Gustav Wibeg
> >
> >>
> >>
> >>
> >>
> >> type Exception report
> >> message
> >> description The server encountered an internal error () that
> >> prevented it from fulfilling this request.
> >> exception
> >> 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
> >> causeUnable 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)note The
> >> full stack trace of the root cause is available in the
> >> ApacheTomcat/5.0.28 logs.
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


--
Marc Farrow

Re: Fw: JAVAHOME

Posted by Jacob Fenwick <jf...@mitre.org>.
It should point to the location of your JDK.
Examples:

Windows:
set JAVA_HOME=C:\sun-jdk-1.5.0.06

Linux:
export JAVA_HOME=/opt/sun-jdk-1.5.0.06

Gustav Wiberg wrote:

> Hi there!
>
> Se down below. I get that fault when I try to run an ischolar 
> application.
>
> It seems to be the JAVAHOME-variable that isn't registrered. But where 
> do I
> find that specific variable? (can't find it)
> is jvm and JAVAHOME the same?
>
> Should this variable point to the JVM-client?
>
> Best regards
> /Gustav Wibeg
>
>>
>>
>>
>>
>> type Exception report
>> message
>> description The server encountered an internal error () that 
>> prevented it from fulfilling this request.
>> exception
>> 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 
>> causeUnable 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)note The 
>> full stack trace of the root cause is available in the 
>> ApacheTomcat/5.0.28 logs. 
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org