Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 1 down vote accepted

into catalina.sh 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
add comment

Your Answer

 
discard

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.