You are not logged in.
I've been trying to get tomcat working for sometime now without avail.
I've written a class which uses the import statements
import javax.servlet.*;
import javax.servlet.http.*;
these cause the compiler to throw the error:
package javax.servlet does not exist
so i tried adding the lib directory from tomcat to CLASSPATH using:
export CLASSPATH=$CLASSPATH:/opt/tomcat/common/lib
but i'm still getting the same compiler error.
What am i doing wrong? Do i need to have java1.5 installed to make this work or something?
Offline
Ah, alas, noob error.
What I needed to do was set CLASSPATH to the actual .jar
export CLASSPATH=$CLASSPATH:/opt/tomcat/common/lib/servlet-api.jar
add that into your .bashrc and you're as right as rain...I think
Last edited by stevesutt89 (2009-08-27 08:19:02)
Offline