I changed my CLASSPATH and JAVA_HOME variable to something like this
JAVA_HOME=/usr/local/jdk1.6.0_24
export CLASSPATH=$CLASSPATH:/usr/local/tomcat/lib
export JAVA_HOME
And when I try to compile, the path in the CLASSPATH variable still does not seem to be recognized. I either set the paths awkwardly or need to reboot.
Does what I did look right or is it somehow way off? Should I try rebooting or is there some more obvious mistake in what I am doing?
Thanks,
Alex
Here are the compile errors:
package javax.servlet does not exist
[javac] import javax.servlet.ServletException;
Best Answer
If tomcat started when the machine booted, making changes to your .bashrc will do no good, since tomcat probably is not run by your user. If tomcat was installed from a .deb package, you could have a look in /etc/default/tomcat6, you will probably find similar variables there. Otherwise, we need to know more about how the start script looks.