• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help regarding classpath of jar and environment variable for tomcat

 
Aditya Keyal
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Joe Ess
Bartender
Posts: 9256
9
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic