Originally Posted by martijnburger
I'm really imbarresed to have to ask this question because there are already al lot of threads to be found regarding the same question, however, I haven't been able to get the solutions proposed there working on my system.
My configuration is:
Sun JDK 1.6
When I try to compile a simple .java I get a compiler error stating:
package javax.servlet does not exist
I've tried including /usr/share/java/tomcat6-servlet-2.5-api.jar which didn't solve the problem.
What am I doing wrong?
The problem is that servlet.jar is not on your CLASSPATH. You will need to export it in order to get it to compile. Something like this should do:
NOTE: the above may not work, I am guessing the path only
Personally, I would not touch servlets without an IDE. With an IDE, you could simply add your jars to your project, painless, letting you, the programmer, to do what you are supposed to do: program
Just a hint