tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bu...@snafu.de
Subject Re: newbie: servlet examples work, jsp not
Date Sun, 19 Oct 2003 16:37:05 GMT
hello,

i tried %JAVA_HOME%\bin\javac and it works properly.

Any other ideas?

> You don't need to set your classpath. Tomcat does that for you.
> 
> You should double check that your JAVA_HOME environment variable is set 
> properly. From the command line type: %JAVA_HOME%\bin\javac
> You should see a menu of switches for the compiler.
> If not, check to see where your JAVA_HOME environment variable is pointing by 
> typing: echo %JAVA_HOME%
> 
> You might also want to get tomcat working as a standalone before integrating 
> with Apache to cut down on the number of simultaneous issues to be debugged.
> http://localhost:8080/examples
> 
> 
> 
> 
> 
> 
> On Sunday 19 October 2003 06:35 am, you wrote:
> > hello,
> >
> > i am working in windows xp. i have the jsdk 1.4.1 installed. i also
> > installed apache2 and tomcat 4.1 as described in the HowTo:
> > http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html
> >
> > after installation, i wanted to try the examples at
> > http://localhost/examples. the servlet examples work, but the jsp examples
> > not. i get the following error:
> >
> > org.apache.jasper.JasperException: Unable to compile class for JSP
> >
> > An error occurred at line: -1 in the jsp file: null
> >
> > Generated servlet error:
> >     [javac] Compiling 1 source file
> >
> > and in the logs i have:
> >
> > 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
> >
> > But my Java_Home does point to c:\j2sdk1.4.1
> > and my classpath does point to c:\j2sdk1.4.1\lib\tools.jar
> >
> > So, what am i making wrong? thank you in
> > advance.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 



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


Mime
View raw message