This problem is classpath in your environment, your classpath should contains following three.
1.for javac classpath= c:\jdk1.2.2\lib\tools.jar
2.for jsp class file classpath=c:\jswdk-1.0.1\lib\jspengine.jar
3.for
servlets classes classpath=c:\jswdk-1.0.1\lib\servlet.jar
Above three must be in your classpath.Try to add like your home directory.
I think this will help you
Thanx
Ashok