[5477] in java-interest

home help back first fref pref prev next nref lref last post

Re: Help with import

daemon@ATHENA.MIT.EDU (Mike Burkett)
Mon Feb 12 01:46:50 1996

Date: Sun, 11 Feb 1996 23:24:07 -0600
From: Mike Burkett <mburkett@tpoint.net>
To: ZO <zozoo@tiac.net>
Cc: java-interest@java.Eng.Sun.COM

ZO wrote:
> As soon as I use the "import"
> I get compiler error saying that no such class (awt.Graphics,
> browser.Applet) was found on import. What am I doing wrong? I followed
> downloading instructions for JDK for Windows'95.

It looks like the book you are working from is for the Alpha 3 level 
code. I had the same problems with one of the books I used. In the 1.0 
release code (current JDK version) the Applet class is in 
java.applet.Applet and the Graphics class in java.awt.Graphics.

For an up to date reference try either the "Learn Java in 21 Days" book 
by Lemay and Perkins or Sun's online tutorial at 
http://java.sun.com/tutorial/index.html.  You can also download the 
entire HTML tree for the tutorial or api documentation.

Happy Java-ing,
Mike Burkett
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post