> From: Sebastian Funk [mailto:[EMAIL PROTECTED] 
> Subject: Re: java.lang.Object cannot be resolved
> 
> I never set $CLASSPATH, but when I call rt.jar via "javac -cp .../ 
> rt.jar Servlet.java", it works fine. Should I set $CLASSPATH or is  
> that enough?

No, you don't want to put rt.jar on the -cp parameter.  Classes from
rt.jar are loaded via the bootstrap classloader, not the system
classloader, and the security attributes are different for the two
loaders.

Something seems to be wrong with your JDK installation.  Where is javac
located?  Where is rt.jar located?  What is your complete javac command
line?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to