Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to follow some good-practice methods and not place the servlet jars into the java install.

Instead what I am hoping to do is figure out the correct way to point to the servlet jars.

If my tomcat jars are in /urs/local/tomcat/lib - how should I configure it so my Ubuntu actually understands to look for those libraries there when I try to compile stuff? :)

Thanks, Alex

share|improve this question
up vote 1 down vote accepted

into you can set the CLASSPATH a different option is to set it into your .profile | .bash_profile | .bashrc

sh syntax
export CLASSPATH=$CLASSPATH:/urs/local/tomcat/lib

to compile use the sh option and then issue javac .... here is not ubuntu who needs to understand but rather the java compiler (javac)

share|improve this answer
is syntax some script that I need to edit? Where is it usually located? – Genadinik Apr 11 '11 at 16:58
in linux open a command line terminal – silviud Apr 12 '11 at 18:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.