in order to compile any servlet with java web server, one has to include servlet.jar in the CLASSPATH.
so I set up my CLASSPATH variable in autoexec.bat like
set CLASSPATH = c:\JavaWebServer2.0\lib\servlet.jar;
now if i try to compile my servlet, javac gives me error saying that packages javax.servert.*; & javax.servlet.http.*; not found, but If I run javac like this
javac -classpath c:\JavaWebServer2.0\lib\servlet.jar first.java
this things get compiled.
Does anybody has a clue what I am doing wrong
Thanx in advance
Sami
so I set up my CLASSPATH variable in autoexec.bat like
set CLASSPATH = c:\JavaWebServer2.0\lib\servlet.jar;
now if i try to compile my servlet, javac gives me error saying that packages javax.servert.*; & javax.servlet.http.*; not found, but If I run javac like this
javac -classpath c:\JavaWebServer2.0\lib\servlet.jar first.java
this things get compiled.
Does anybody has a clue what I am doing wrong
Thanx in advance
Sami