Hi Ahmad:

    I think that if you use the "-classpath" command line option, the
specified path gets added to the original $CLASSPATH. So, you must include
them ALL on the command line.

Greg Tomalesky

-----Original Message-----
From: Ahmad Zahir <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
<[EMAIL PROTECTED]>
Date: Monday, June 21, 1999 10:48 AM
Subject: Problem compiling servlets


>Hi all,
>
>I'm still having problems compiling servlets
>on Redhat 5.2, jsdk 2.0, jdk1.1.7...this is the syntax:
>$CLASSPATH was not being recognized, so i included manually.
>
>javac -classpath /usr/local/jsdk/lib/jsdk.jar Hello.jar
>
>Hello.java:3: Package java.io not found in import.
>import java.io.*;
>      ^
>Hello.java:13: Superclass java.lang.Object of class Hello not found.
>public class Hello extends HttpServlet
>                          ^
>2 errors
>
>
>What other variables do i have to set in order to compile a simple
>servlet?
>
>Thanks in advance,
>
>
>_______________________________________________________________
>Get Free Email and Do More On The Web. Visit http://www.msn.com
>
>
>--
>--------------------------------------------------------------
>To subscribe:        [EMAIL PROTECTED]
>To unsubscribe:      [EMAIL PROTECTED]
>READ THE FAQ!!!!     <http://java.apache.org/faq/>
>Archives and Other:  <http://java.apache.org/main/mail.html/>
>Problems?:           [EMAIL PROTECTED]
>
>



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to