Actually setting the $CLASSPATH should work. I prefer the 'javac -classpath' method, as you can specify the jars that you want instead of a bunch of directories in the $CLASSPATH variable. Try combining that with a shell script, saves you from typing too many times. Better yet, use ant.

Jonathan Michael Nowacki wrote:

Holy cow!!! It worked. Thank you very much Kwok Peng Tuck

It's still puzzles me why
javac -classpath /var/tomcat4/common/lib/servlet.jar MultiServlet.java
works yet

javac doesn't when I set my class path variable.

$ echo $CLASSPATH
/var/tomcat4/common/lib/servlet.jar

$ javac MultiServlet.java
MultiServlet.java:1: package javax.servlet does not exist
import javax.servlet.*;
^
MultiServlet.java:2: package javax.servlet.http does not exist
import javax.servlet.http.*;
^

the $CLASSPATH variable is the same as whats after -classpath, why does
one work and the other doesn't.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to