• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Tomcat server?  RSS feed

Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi does anyone know how to specify the classpath to xalan.jar and xerces.jar in the tomcat server so that my servlet would be able to run from any browser?
I'm able to compile my java file after export the classpath to include xalan.jar and xerces.jar but this is only for my local shell. If i'm not wrong, we have to specify it in tomcat so tat i would be able to see the servlet from the browser. Am i right?
Pls help. Thank you.
Author and all-around good cowpoke
Posts: 13078
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This sounds a little mixed up. If you want a browser to run an applet that uses xalan.jar etc. thats one thing - entirely separate from having a servlet that uses xalan.jar etc.
If you look at the startup batch file for Tomcat you can see that it sets up classpath environment variables. You can modify that batch file.
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Edited: OOPS, Looks like I am competing with you Bill. Sorry!

While there are more than one ways to do it, I would just
copy the two jar files into the lib folder of tomcat.
That way when you start tomcat, it will automatically put
them into the class path. Also, the reason
I suggest this is that this is the suggested method when you are installing Cocoon.
The alternate way would be to edit the scripts, which I
dare not.
- satya

[This message has been edited by Madhav Lakkapragada (edited June 22, 2001).]
See ya later boys, I think I'm in love. Oh wait, she's just a tiny ad:
how do I do my own kindle-like thing - without amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!