RE: Problem Compiling Servlet! Please help

2001-01-24 Thread Roland Dong

Thanks for your help!

I am very new to this and just want to have the servlet up and running... 
I did install the lasted Orion 1.45. I have not yet successfully compiled a simple 
servlet...

I did put the tools.jar under orion directory and I even put it on the path in
autoexec.bat so it looks like this:

SET BLASTER=A220 I7 D1 T2
SET SNDSCAPE=C:\WINDOWS
PATH C:\WINDOWS;C:\WINDOWS\COMMAND
path=%path%;c:\jdk1.3\bin;C:\ORAWIN95\BIN;C:\jdk1.3\lib\tools.jar;C:\jsdk2.1\servlet.jar;
set CLASSPATH=,;jsdk2.1\servlet.jar;%CLASSPATH%
doskey

Unfortunately, when I type in the command javac helloworld2.java

I still got this error:

C:\Web\jsp\jspRoland\WEB-INF\classesjavac 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.*;
.

I have tried everything I can think of...  Some tutorial said I need to put 
jsdk.jar on the path. I down loaded jsdk2.1 from Sun website but did not find
jsdk.jar in it.

Can you help me again?  Thanks a lot.

Roland




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kemp
Randy-W18971
Sent: Monday, January 22, 2001 1:14 PM
To: Orion-Interest
Subject: RE: Problem Compiling Servlet! Please help


Do you have the servlet.jar in your classpath (needed for Tomcat) or put the tools.jar 
in the Orion directory (see Orion installation instructions)?  Try upgrading at least 
to Orion 1.3 (the latest stable version). 

-Original Message-
From: Roland Dong [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 22, 2001 3:06 PM
To: Orion-Interest
Subject: RE: Problem Compiling Servlet! Please help




I have successfully auto-compiled the servlet(HelloWorld2.java) by following the 
instruction in the documentation.  

However, I wanted to compile the servlet with JDK 1.3 compiler to compile the servlet 
and I did not succeed.


Your documentation says:


"Of course you can also compile the Servlets using your favourite IDE or java 
compiler. If you do so you simply put the Servlet class in the WEB-INF/classes 
directory of your web application. If you do not want to package your Servlets into a 
new web application, you can simply put the classes in 
/orion/default-web-app/WEB-INF/classes/ "

I tried to put the HelloWorld2.java under WEB_INF/classes directory. It won't compile. 
I got errror mesasges: like:

HelloWorldServlet2.java:2: package javax.servlet does not exist import javax.servlet.*;


I guess the problem is the path... If so can you tell me how to set the path so that 
my Java compile can compile the servlet? I am using orion 1.0.1.

Thanks a lot,

Roland






RE: Problem Compiling Servlet! Please help

2001-01-22 Thread Kemp Randy-W18971

Do you have the servlet.jar in your classpath (needed for Tomcat) or put the tools.jar 
in the Orion directory (see Orion installation instructions)?  Try upgrading at least 
to Orion 1.3 (the latest stable version). 

-Original Message-
From: Roland Dong [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 22, 2001 3:06 PM
To: Orion-Interest
Subject: RE: Problem Compiling Servlet! Please help




I have successfully auto-compiled the servlet(HelloWorld2.java) by following the 
instruction in the documentation.  

However, I wanted to compile the servlet with JDK 1.3 compiler to compile the servlet 
and I did not succeed.


Your documentation says:


"Of course you can also compile the Servlets using your favourite IDE or java 
compiler. If you do so you simply put the Servlet class in the WEB-INF/classes 
directory of your web application. If you do not want to package your Servlets into a 
new web application, you can simply put the classes in 
/orion/default-web-app/WEB-INF/classes/ "

I tried to put the HelloWorld2.java under WEB_INF/classes directory. It won't compile. 
I got errror mesasges: like:

HelloWorldServlet2.java:2: package javax.servlet does not exist import javax.servlet.*;


I guess the problem is the path... If so can you tell me how to set the path so that 
my Java compile can compile the servlet? I am using orion 1.0.1.

Thanks a lot,

Roland