I just installed
Tomcat 5.0.27 and
java SDK 1.4.2_05 and am having a problem with the service. I have a Windows XP machine and the service will start, but when I try and run the application, I get the following errors:
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
The curious part is that when I shut down the service and just run the startup.bat file found in the Tomcat bin directory, everything works just fine.
The SKD is installed at C:\j2sdk1.4.2_05, which I have set as JAVA_HOME. I have also included this directory in the path, classpath, along with the bin directory. I've tried to analyze the service.bat file thinking maybe the problem lies there, but am not having any luck finding the issue. Is there a fundamental difference between the way Tomcat starts with the service compared to the bat file? Please help.