Got it ! Thanks! When starting tomcat from the command line by executing startup.bat, it works. But when I am starting it as a windows service, it doesn't ! And problem was that I used to start it as a service.
When I start tomcat as a service, the JVM is started with the following parameter : -Djava.class.path=C:\Programme\jakarta-tomcat\\bin\bootstrap.jar;C:\Programm e\jakarta-tomcat\\common\lib\servlet.jar I don't see something like %JAVA_HOME%\lib in here. Could that be the problem ? - Gerald . ----- Original Message ----- From: "Sriram N" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, October 30, 2003 3:50 AM Subject: Try this (Re: Error: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.) > Hello: > > I assume that you are using a standard Tomcat download and have not edited any > startup scripts. > > 1. Ensure that you have an environment variable called JAVA_HOME that points to > your Java installation. If JDK installed in c:\Program Files\JDK1.3.1\, then > the JAVA_HOME environment variable should be set as > > SET JAVA_HOME="c:\program Files\JDK1.3.1". > > 2. Now, JAVA_HOME\lib should contain the file tools.jar. This is a requirement > of the startup scripts. > > 3. The startup scripts ensure that the CLASSPATH environment variable is NOT > used by the JVM. All your CLASSPATH settings are therefore not used at all. > > 4. Now try running Tomcat via the batch files from a command prompt. You should > see the a few messages that state which environment variables are being used. > > -- Sriram > > --- Gerald Stampfel <[EMAIL PROTECTED]> wrote: > > I solved it by copying tools.jar to tomcat/common/lib. > > > > Dirty workaround, but didn't find any other. > > > > - > > Gerald S. > > > > > > ----- Original Message ----- > > From: "Gerald Stampfel" <[EMAIL PROTECTED]> > > To: "Tomcat Users List" <[EMAIL PROTECTED]> > > Sent: Wednesday, October 29, 2003 6:18 AM > > Subject: Re: Error: Unable to find a javac compiler; > > com.sun.tools.javac.Main is not on the classpath. > > > > > > > I am working in a windows environment. > > > > > > You mean setting my environment variable %classpath% by doing SET > > CLASSPATH > > > = "..." ? > > > > > > I have done that and it still doesn't work. > > > > > > - > > > Gerald S. > > > > > > ----- Original Message ----- > > > From: "Jay Garala" <[EMAIL PROTECTED]> > > > To: "'Tomcat Users List'" <[EMAIL PROTECTED]> > > > Sent: Tuesday, October 28, 2003 10:14 PM > > > Subject: RE: Error: Unable to find a javac compiler; > > > com.sun.tools.javac.Main is not on the classpath. > > > > > > > > > > Make sure u have $JDK/lib/tools.jar in your classpath > > > > > > > > -----Original Message----- > > > > From: Gerald Stampfel [mailto:[EMAIL PROTECTED] > > > > Sent: Tuesday, October 28, 2003 4:11 PM > > > > To: [EMAIL PROTECTED] > > > > Subject: Error: Unable to find a javac compiler; > > com.sun.tools.javac.Main > > > is > > > > not on the classpath. > > > > > > > > > > > > Hi folks, > > > > > > > > i got the following error message: > > > > > > > > > > -------------------------------------------------------------------------- > > > -- > > > > -- > > > > > > > > 2003-10-28 21:58:08 Info: Compile: > > > > > > > > > javaFileName=C:\Programme\jakarta-tomcat\work\Standalone\localhost\jetspeed\ > > > > /index_jsp.java > > > > > > > > > > > > > classpath=/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/activati > > > > > > > > > on.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/castor-0.9. > > > > > > > > > 3.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-bean > > > > > > > > > utils-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/co > > > > > > > > > mmons-collections-2.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB- > > > > > > > > > > > INF/lib/commons-configuration-1.0-dev.jar;/C:/Programme/jakarta-tomcat/webap > > > > > > > > > ps/jetspeed/WEB-INF/lib/commons-dbcp-1.0-dev-20020806.jar;/C:/Programme/jaka > > > > > > > > > rta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-lang-1.0.jar;/C:/Programme/j > > > > > > > > > akarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-logging-1.0.2.jar;/C:/Pro > > > > > > > > > gramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-pool-1.0.jar;/C:/ > > > > > > > > > Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/ecs-1.4.1.jar;/C:/Prog > > > > > > > > > ramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/fulcrum-3.0-b2-dev.jar;/C: > > > > > > > > > /Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/hsqldb.jar;/C:/Progra > > > > > > > > > mme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta-oro-2.0.6.jar;/C:/Pr > > > > > > > > > ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta-regexp-1.2.jar;/ > > > > > > > > > C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jcs-1.0-dev.jar;/C: > > > > > > > > > /Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jdbc-se2.0.jar;/C:/Pr > > > > > > > > > ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jetspeed-1.4-b4.jar;/C:/ > > > > > > > > > Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/log4j-1.2.6.jar;/C:/Pr > > > > > > > > > ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/mail.jar;/C:/Programme/j > > > > > > > > > akarta-tomcat/webapps/jetspeed/WEB-INF/lib/ojb-0.7.343.jar;/C:/Programme/jak > > > > > > > > > arta-tomcat/webapps/jetspeed/WEB-INF/lib/soap.jar;/C:/Programme/jakarta-tomc > > > > > > > > > at/webapps/jetspeed/WEB-INF/lib/stratum-1.0-b4-dev.jar;/C:/Programme/jakarta > > > > > > -tomcat/webapps/jetspeed/WEB-INF/lib/torque-3.0.jar;/C:/Programme/jakarta- > > > to > > > > > > > > > mcat/webapps/jetspeed/WEB-INF/lib/turbine-2.2.jar;/C:/Programme/jakarta-tomc > > > > > > > > > at/webapps/jetspeed/WEB-INF/lib/uddi4j.jar;/C:/Programme/jakarta-tomcat/weba > > > > > > > > > pps/jetspeed/WEB-INF/lib/velocity-1.3.jar;/C:/Programme/jakarta-tomcat/webap > > > > > > > > > ps/jetspeed/WEB-INF/lib/village-1.5.3.jar;/C:/Programme/jakarta-tomcat/webap > > > > > > > > > ps/jetspeed/WEB-INF/lib/xalan-2.3.1.jar;/C:/Programme/jakarta-tomcat/webapps > > > > > > > > > /jetspeed/WEB-INF/lib/xerces-2.0.2.jar;/C:/Programme/jakarta-tomcat/webapps/ > > > > > > > > > jetspeed/WEB-INF/lib/xercesImpl.jar;/C:/Programme/jakarta-tomcat/webapps/jet > > > > > > > > > speed/WEB-INF/lib/xml-apis.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed > > > > > > > > > /WEB-INF/lib/activation.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WE > > > > > > > > > B-INF/lib/castor-0.9.3.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB > > > > > > -INF/lib/commons-beanutils-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/ > > > je > > > > > > > > > tspeed/WEB-INF/lib/commons-collections-2.0.jar;/C:/Programme/jakarta-tomcat/ > > > > > > > > > webapps/jetspeed/WEB-INF/lib/commons-configuration-1.0-dev.jar;/C:/Programme > > > > > > > > > /jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-dbcp-1.0-dev-20020806.j > > > > > > > > > ar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-lang-1. > > > > > > > > > 0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-logg > > > > > > > > > ing-1.0.2.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/comm > > > > > > > > > ons-pool-1.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/e > > > > > > > > > cs-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/fulcr > > > > > > > > > um-3.0-b2-dev.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/ > > > > > > > > > hsqldb.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta > > > > > > -oro-2.0.6.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/j > > > ak > > > === message truncated === > > > __________________________________ > Do you Yahoo!? > Exclusive Video Premiere - Britney Spears > http://launch.yahoo.com/promos/britneyspears/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
