you are correct. That is what I do and it works fine with Ant.

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of KirkYarina
> Sent: Friday, January 26, 2001 7:58 AM
> To: Orion-Interest
> Subject: RE: Why javac does not compile servlet?
>
>
> orion.jar contains the javax.servlet classes, and (somebody correct me if
> I'm wrong) should be used instead of Sun's j2ee or jsdk.
>
> Add orion.jar to your classpath.  You may want to look at the other jars
> included with orion if you're missing other classes, also.
>
> Kirk Yarina
>
> At 09:06 AM 1/26/01 -0500, you wrote:
> >You need to install the J2EE JDK 1.2.1 from the java.sun.com
> >website.  Since you are using javac to compile your classes, the
> j2ee.jar
> >file needs to be in your classpath.
> >
> >here's the
> >URL:
> ><http://java.sun.com/j2ee/download.html>http://java.sun.com/j2ee/
download.html
>
>Hope this helps...
>
>Regards,
>Tom Pridham
>-----Original Message-----
>From: Roland Dong [mailto:[EMAIL PROTECTED]]
>Sent: Friday, January 26, 2001 4:18 AM
>To: Orion-Interest
>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