• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Tomcat server?

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
Bill
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
regds.
- satya

[This message has been edited by Madhav Lakkapragada (edited June 22, 2001).]
 
reply
    Bookmark Topic Watch Topic
  • New Topic