Title: Trouble with Installation of JSDK 2.1
Jrun does not use windows CLASSPATH, it has its own classpath.
 
Add the Servlet.jar file to its classpath. You can do it by opening up its administration panel and clicking on general and then java tab.
 
----- Original Message -----
Sent: Friday, August 20, 1999 9:21 AM
Subject: Trouble with Installation of JSDK 2.1

I have got to be brain dead or something because I can NOT get javac to see the JSDK packages.  Here is the deal.

I am running Windows 98 with PWS and JRUN installed.  JRun is not running at the time I attempt to compile my servlet.

JDK 2.2.1 is found at E:\jdk1.2.2.
JSDK 2.1 is found at E:\jsdk2.1.

My autoexec.bat file looks like this:

if not "%OS%"=="Windows_NT" if "%COMSPEC%"=="C:\WINDOWS\COMMAND.COM"  set SMS_LOCAL_DIR=C:\WINDOWS
SET PATH=E:\jdk1.2.2\bin;E:\jsdk2.1\src\javax;C:\WINDOWS\SYSTEM\WBEM;C:\WINDOW
SET CLASSPATH=E:\jdk1.2.2\lib;E:\jrun\servlets

When I attempt to compile the servlet I get the following:

C:\>javac e:\JRun\servlets\firstServlet.java
e:\JRun\servlets\firstServlet.java:2: Package javax.servlet not found in import.

import javax.servlet.*;
       ^
e:\JRun\servlets\firstServlet.java:3: Package javax.servlet.http not found in im
port.
import javax.servlet.http.*;
       ^
e:\JRun\servlets\firstServlet.java:5: Superclass HttpServlet of class firstServl
et not found.
public class firstServlet extends HttpServlet {
                                  ^
3 errors

I just got off a plane after a 6:15 AM flight and I know that my brain is not functioning properly.  What am I missing here?

Michael

Reply via email to