I remember in tomcat 5.0.18 there was a java Home property, but now I've just a "Java Virtual machine"
originally it was set to "C:\Program Files\Java\j2re1.4.2_05\bin\client\jvm.dll" (and didn't worked)
then I changed it to "C:\j2sdk1.4.2_05\jre\bin\client\jvm.dll" but still doesn't work


and there is not place to set a java home via configuration panel

Simone


Ben Souther wrote:

I know that, at one point. The Windows installer had tomcat looking for jdk in the registry, even if you had JAVA_HOME set properly.
But that was fixed.


If you used the Windows installer, check where it is looking for java.
Start -> Programs -> Apache-Tomcat -> Configure Tomcat.

There is a Java Tab in there that you can use to set the Java Home property.
See if that matches your JAVA_HOME env var.



On Monday 12 July 2004 09:03 am, Simone-dev wrote:


Yes, I did it....
the JAVA_HOME is set correctly

Simone

Ben Souther wrote:


Did it?

On Monday 12 July 2004 09:00 am, Simone-dev wrote:


And what if it works ?

Simone

Ben Souther wrote:


Test your JAVA_HOME environment variable.

Open a command prompt and type:
%JAVA_HOME%\bin\javac

If you see:
No File Or Program Found.....
you didn't set it right.

On Monday 12 July 2004 08:44 am, Simone-dev wrote:


Hello all,
I just installed  Apache Tomcat/5.0.25 on my newly installed developing
workstation on Windows
I've installed SDK  1.4.2_05, too...

But when I try to run a JSP to compiled I get the error

org.apache.jasper.JasperException: Unable to compile class for JSP

No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar




from the JDK to the common/lib directory of the Tomcat server, followed


by a Tomcat restart. If using an alternate Java compiler, please check
its installation and access path.


I've set JAVA_HOME as C:\j2sdk1.4.2_05 but tomcat still doesn't compile JSP

any ideas?

Simone








Reply via email to