You are telling the compiler to ignore the system class path and only use
the JSDK classes. The JSDK jar file doesn't contain the base Java classes.
You need to include the system classpath like this:
javac -classpath $CLASSPATH:/path/to/jsdk2/lib/jsdk.jar
HelloWorldServlet.java
(At least I think that's what it looks like on Linux. I'm a newbie to Linux
:-)
On a Windows machine it would look like this:
javac -classpath %CLASSPATH%;/path/to/jsdk2/lib/jsdk.jar
HelloWorldServlet.java
Aaron
> -----Original Message-----
> From: Gaurav Kishore [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 06, 1999 8:42 AM
> To: [EMAIL PROTECTED]
> Subject: Newbie - Please help (still struggling)
>
>
> Hello,
> I am using Apache JServ on Linux and
> I am trying to compile a servlet (a simple HelloWorldServlet)
> using the
> following command -
>
> javac -classpath /path/to/jsdk2/lib/jsdk.jar HelloWorldServlet.java
>
> I am getting the error - "java/lang/Object.class not found" and couple
> of more errors.
> What does it mean and what is the solution?
>
> Also, how do I setup classpath, so that I don't have to type it
> everytime I compile a servlet.
>
> Kindly help.
> Thanks in advance.
> Gaurav
>
___________________________________________________________________________
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