The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
August 2001



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.


package (Thinking in Java)

Posted by Adip on September 14, 2001 at 11:28 AM

Ok, first I recomend you to read Chapter 5 from Thinking in Java, where you will see a section about packeges in Java. Of course, you can read the entire book, is a execelent one, I recomenend strongly to all my friends.
Put the directory "com\bruceeckel\swing" in your working directory. Compile the com\bruceeckel\swing\ which you need, then you can compile your application, and you will
not get that compilation error. This is a the simpliest solution.
Another solution would be to add this package to your classpath.


> Howdie All.

> I have jdk1.3 installed on my Windows system.

> Recently purchased Bruce Eckel's book Thinking In Java.
> Downloaded programs off of CDROM (included with book).
> Bruce Eckel's example uses packages which he developed.

> When I compile the Bruce Eckels's java source code examples
> which include "import com.bruceeckel.swing.*" or "package
> com.bruceeckel.swing", I get compilation error that reads
> "package com.bruceeckel.swing does not exist". It, of course,
> does in fact exist, but ... compiler cannot find it ... so

> my Question - Which folder/directory should I move bruceeckel's
> package to in the jdk1.3? Intuitively (at least to me) I'm not
> sure where I should place it in order to reconcile compilation
> error.

> Thanks in advance for any and all suggestions/help.


Sponsored Links

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