--
Ahmad Zahir wrote:
>
> 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
>
Hi zahir,
when you use the -classpath option you limit the class path scope to what
you have mentioned. in your case, the jdk1.1.7 classpath is now not visible
to your compiler. so you export the full classpath at your prompt as
linux#export CLASSPATH=/path/to/jdk1.1.7/lib/classes.zip : . :
/p
Hi ahmad,
If your classpath isn't being recognized i'll have to put all libraries
required to java compiling on the -classpath param.
Wellington
Brazil
Ahmad Zahir wrote:
> Hi all,
>
> I'm still having problems compiling servlets
> on Redhat 5.2, jsdk 2.0, jdk1.1.7...this is the syntax:
> $CLA
OTECTED]
<[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 man
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.*;