aspose file tools*
The moose likes Tomcat and the fly likes Help regarding classpath of jar and environment variable for tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Help regarding classpath of jar and environment variable for tomcat" Watch "Help regarding classpath of jar and environment variable for tomcat" New topic
Author

Help regarding classpath of jar and environment variable for tomcat

Aditya Keyal
Ranch Hand

Joined: Dec 01, 2008
Posts: 71
Hi
I have 2 doubts :
1> I have added a jar file in the lib of my web project. Now when I try to access the classes in the jar file the classes are missing. How do I explicitly add the jar file in the classpath.
2> If an environment variable was designed in the linux OS would it be accessible to the war deployed on tomcat?

Please help.
Thanks


- Aditya Webservices Blog
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8997
    
    9

Aditya Keyal wrote:
1> I have added a jar file in the lib of my web project. Now when I try to access the classes in the jar file the classes are missing. How do I explicitly add the jar file in the classpath.

Those classes should be in the classpath. Do you have other JAR files in WEB-INF/lib that are working? How are you trying to access the classes? What error are you getting?

Aditya Keyal wrote:
2> If an environment variable was designed in the linux OS would it be accessible to the war deployed on tomcat?

I don't know what you mean here. You declared an environment variable in one OS and want it to work in another? You need to give us some details as to what you have on Linux and what you want in Windows.


[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help regarding classpath of jar and environment variable for tomcat