The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
August 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

replay

Posted by Jose Botella on August 11, 2000 at 5:10 PM

> I have the book "Thinking in Java" 2nd edition by Bruce Eckel
> but I can't figure out how to get the SWING examples to work.
> Compiler is having a problem with
> "import com.bruceeckel.swing.*;". I see the Console.java
> file in the swing directory but I really have no idea how to
> proceed. Please HELP! Thanks.


I think all the problems with import are due to an incorrect
classpath setting . For instance put the javac option -classpath
.;parent_dir_of_com , where com is the one that contains
bruceeckel.
Check you are not doing a silly thing as I discovered myself
doing: import only gives you the right to reference the object
without naming the packages, you must still write the actual
name of the object to send it a message ;-)



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us