Hi,

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?

On Feb 11, 2006, at 9:49 PM, Martin Gainty wrote:

Lets start with the easy stuff is $JAVA_HOME\lib\rt.jar on your $CLASSPATH ???

Martin-

----- Original Message ----- From: "David Smith" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Saturday, February 11, 2006 1:56 PM
Subject: Re: java.lang.Object cannot be resolved


Looks like the kind of weirdness that makes me think the JVM has become unstable. Have you tried to restart Tomcat?
-- David
Sebastian Funk wrote:

On Feb 11, 2006, at 6:30 PM, Caldarale, Charles R wrote:

From: Sebastian Funk [mailto:[EMAIL PROTECTED]
Subject: java.lang.Object cannot be resolved

             import java.lang.Object;

    The type java.lang.Object cannot be resolved. It is indirectly
referenced from required .class files

Don't know why you're suddenly getting this message, but there's no
reason to import java.lang.Object (or anything else from java.lang, for
that matter).  There is an implicit import of java.lang.* for all
compilations (see Java language spec, section 7.5.5).

 - Chuck
I get that message at the first import-statement. When I don't import java.lang.Object, then I get exactly the same, e.g.:
    1. ERROR in Familie.java
    (at line 1)
            import javax.servlet.*;
           ^
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files

Any ideas?

Greetings,
Sebastian Funk




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

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


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



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

Reply via email to