The Artima Developer Community
Sponsored Link

Java Answers Forum
Tomcat 4.0.4 Classpath

2 replies on 1 page. Most recent reply: Aug 8, 2002 10:32 PM by MadanGopal Mathur

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Michael

Posts: 8
Nickname: st0rm
Registered: Jun, 2002

Tomcat 4.0.4 Classpath Posted: Aug 6, 2002 5:36 AM
Reply to this message Reply
Advertisement
Hi
I've installed tomcat 4.0.4 as NT service. Now I cant figure out how to set my classpath that my application needs. Could anyone help me out on this one?


Don Hill

Posts: 70
Nickname: ssswdon
Registered: Jul, 2002

Re: Tomcat 4.0.4 Classpath Posted: Aug 6, 2002 1:41 PM
Reply to this message Reply
I will take a stab at it. If you are talking about classpath for the artifacts, the classes need to be in the WEB-INF/classes folder, this is a J2ee thing. if you have jars and want to place them in the classpath then place them in WEB-INF/lib folder. These are resolved by the classloader for the web module. There should also be a folder where you can have the server add these jars to its classpath, this is only needed if you have many jars that are used over and over say, xerces.jar or xalan.jar, look for the common jar folder to place these files

HTH

MadanGopal Mathur

Posts: 3
Nickname: mgm
Registered: Aug, 2002

Re: Tomcat 4.0.4 Classpath Posted: Aug 8, 2002 10:32 PM
Reply to this message Reply
Hi,

I will give you an example for Tomcat3.3 version, you can use the same idea on 4.0.4.I am assuming u have installed Tomcat on C drive and working on windows.

You should open your command prompt(Windows) and type

set CLASSPATH:C:\Tomcat4.0.4\lib\common\servlet.jar;

If this does not work, just see where the servlet.jar file is the lib directory and use that path name.It should do it.If you are still getting httpServlet not found error, you haven't set the path properly.

Else you can always check the jakarta.apache.org website.

More Later
MGM

Flat View: This topic has 2 replies on 1 page
Topic: run java program from java Previous Topic   Next Topic Topic: Invoking exe from Java

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use