It seems to me that servlet.jar is not available in your jdk jre
try to copy servlet.jar to jdk\jre\lib\ext  ..and try again
I hope this help
faisal
----- Original Message -----
Sent: Friday, January 26, 2001 9:17 AM
Subject: Why javac does not compile servlet?

 
I  have successfully installed orion1.45. It runs great!  What I can not figure out is how to make javac compile a servlet.  I have put tool.jar into orion directory and my autoexec.bat look like this:
 
 
SET BLASTER=A220 I7 D1 T2
SET SNDSCAPE=C:\WINDOWS
set JAVA_HOME=c:\jdk
set TOMCAT_HOME=C:\tomcat\
set PATH=c:\jdk\bin
PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\ORAWIN95\BIN;c:\jdk\bin
set CLASSPATH=c:\jdk\lib\tools.jar;
 
        When I compile a simple servlet  I got error message.  This is the error message when I try to
javac HelloWorldServelt2.java:

C:\Web\jsp\jspRoland\WEB-INF\classes>javac HelloWorldServlet2.java
HelloWorldServlet2.java:2: package javax.servlet does not exist
import javax.servlet.*;
^
HelloWorldServlet2.java:3: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
etc.
...........
...........
7 errors
C:\Web\jsp\jspRoland\WEB-INF\classes>
 
Could someone throw me some light?
 
Thanks very very much
 
Roland
 

Reply via email to