I\'ve got this error message when I compiled a Java file :
error: package javax.servlet does not exist
I installed a big .SH file for Jave
Read about java class paths here on Wikipedia.
Ready closely the last paragraph under "Overview and architecture".
In your example
The javax.servlet package is not part of the bootstrapped or extension packages, so it must be added manually to your classpath. ALJI has shown you how to do this from the command line. The Wikipedia link above also provides examples.
Recommendation
Everyone hits these types issues when starting a new language. Google is full of tutorials that will help you gain a basic understanding of Java class paths.