There is a difference between PATH and CLASSPATH.
What you want is for your CLASSPATH to point to the proper classfiles.
Last time I downloaded the JSDK, is came as a jar file and was in the /lib
directory.
So what you need is (in a system independent pseudo-language)

CLASSPATH = .../JSDK/lib/jsdk.jar


--shawn


-----Original Message-----
From: Mark Phelps [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 25, 1999 8:20 AM
To: [EMAIL PROTECTED]
Subject: how to compile a servlet program


I can successfully run sample servlets using Microsoft Personal Web
Server with JRun, but have not yet succeeded in compiling one.

I attempted to do so using JDK 1.1.5 with the JSDK servlet extension
which I had downloaded.
This didn't work, so I downloaded JDK 1.2.2 - but I still get the
same problem - a) 'package javax.servlet not found in import' and
'package javax.servlet.http not found in import'; b) 'superclass
HttpServlet of class Properties (the class I'm compiling) not found.'

My path statement in autoexec.bat is set to c:\jdk1.2.2\bin. Is this
where the javax classes are found ? This all looks different to me from
JDK1.1.x, which used a CLASSES.ZIP file (the JDK1.2.2 documentation says
this is not required). And where is the class HttpServlet ?

--
Mark Phelps

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to