I have jdk1.2 installed on my PC. I have downloaded jsdk from sun's site. which resides in c:\jsdk2.0. I have set the path in autoexec.bat as c:\jsdk2.0\lib\jadk.jar;c:\jsdk2.0\bin. but till not working when tried javac compiler on sample servlet code. giving the error "javax.servlet not found in import." I have tried the same code with KAWA4.0 after setting the path there.But result is the same.javac is working fine with other jdk1.2 classes.like awt.,util.,etc.
Hi This is not setting your classpath problem, which should be the dos environment setting on u machine, for example, your dos environment may not have enough memory to let u set classpath. You may try this: 1. forget about setting classpath. 2. copy the servlet.jar to c:\jdk1.2(or jdk1.3)\jar\lib\ext. because in java 2 environment the classpath is not necessary all, sun privid that folder for replacing classpath. hope this will help and pls tell me your result David