In Windows 98 you can edit file autoexec.bat (in C:/WINDOWS ) just edit the line SET CLASSPATH = blablabla for example the actual line is : SET CLASSPATH=C:\Programs\test then just edit it become SET CLASSPATH=C:\Programs\test;\path\to\servlet.jar Just simply add your path to servlet.jar to the CLASSPATH. Then don't forget to execute the autoexec.bat after you edit it to get the effect. If you use Win NT/Win 2000 just go to the Control Panel -> System -> Environment then do the same thing like above ... If there's no CLASSPATH there, you can add it by your self. if you want to make sure whether the CLASSPATH has been set, you can go to the command prompt and type "set | more" Find the word CLASSPATH and make sure there's nothing wrong with it. So, good luck !!
------------------ ** Science belongs to the world **
** Science belongs to the world **
posted 17 years ago
Hi, Thanks Sophia for the tip. I was able to compile servlet. But, I was able to do it through command prompt only. Is it possible to compile servlets through free visual IDEs available like Jbuilder Foundation, or visual cafe?? I was not successful in compiling the servlet through JBuilder Foundation. It doesnt recognize the import javax.servlet line. Thanks Namit