What are you trying to achieve? There's no need for Apache to know anything about CLASSPATH, and tomcat creates its own CLASSPATH on startup (check CATALINA_HOME/bin/catalina.bat) and ignores the CLASSPATH environment variable.
CLASSPATH as an environment variable is typically for command-line java, such as compiling a .java file with javac. There's no need for CLASSPATH for Tomcat. You do need, however, CATALINA_HOME and JAVA_HOME set as system environment variables. Incidentally, "CLASS_PATH" in your example should be "CLASSPATH", and don't worry, there is plenty of room to set whatever you need to set. John > -----Original Message----- > From: Peng Annie [mailto:Annie.Peng@;KONE.com] > Sent: Thursday, October 24, 2002 6:20 AM > To: 'Tomcat Users List' > Subject: RE: how to configure my web applications > > > But the problem is that it can not see the class which is in > web-inf/classes > or web-inf/lib. > Should I specify the class path in System Environment > variables to this > detail level? Like: > > set > CLASS_PATH=C:/tomcat/webapps/application/WEB-INF/lib/application.jar > > then I have too much to set in this variables. > > -----Original Message----- > From: Kwok Peng Tuck [mailto:pengtuck@;makmal.com] > Sent: 24 October 2002 13:13 > To: Tomcat Users List > Subject: Re: how to configure my web applications > > > > Peng Annie wrote: > > >Yes I understand how to set classpath in Tomcat if I run > tomcat, but how to > >set classpath when only apache is running and tomcat is not? > > > > > If you set the class path under Windows nt, it should take effect for > either the entire system or the user. (depends on what you set.) It > doesn't matter if apache is running or not. The classpath you set is > always there. > > > >Robert, thanks for the doc Apache2_Jk2_TC4.1.x.doc, when I > did it step by > >step, it works perfectly. But now I got this problem. Any > idea how to solve > >it? > > > >Annie > > > >-----Original Message----- > >From: Turner, John [mailto:JTurner@;AAS.com] > >Sent: 23 October 2002 18:32 > >To: 'Tomcat Users List' > >Subject: RE: how to configure my web applications > > > > > > > >I hate to say it, but... RTFM!! > > > >http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html > > > >John > > > > > > > >>-----Original Message----- > >>From: Peng Annie [mailto:Annie.Peng@;KONE.com] > >>Sent: Wednesday, October 23, 2002 11:27 AM > >>To: Tomcat Users List > >>Subject: how to configure my web applications > >> > >> > >>Hi there, > >> > >>I have Apache2, Tomcat 4, and Jk2. Now Apache is running as a > >>service and I > >>can run examples in Tomcat without starting tomcat. But I > >>don't know where > >>and how I can configure my webapps, should it be in > >>workers2.properties? > >>How? And where can I set my classpath? > >> > >>Best regards, > >> > >>Annie > >> > >> > >> > > > >-- > >To unsubscribe, e-mail: > ><mailto:tomcat-user-unsubscribe@;jakarta.apache.org> > >For additional commands, e-mail: > ><mailto:tomcat-user-help@;jakarta.apache.org> > > > > > > > > > > -- > To unsubscribe, e-mail: > <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> > For additional commands, e-mail: > <mailto:tomcat-user-help@;jakarta.apache.org> > -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
