p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning Java 2 (http://p2p.wrox.com/forumdisplay.php?f=30)
-   -   Unable to Compile - page 17 (http://p2p.wrox.com/showthread.php?t=954)

JDGuardia June 25th, 2003 02:05 PM

Unable to Compile - page 17
Please see error below. What could be causing this problem? I am running the latest, j2sdk1.4.1_03. Thank you for the help!

U:\Learning JAVA\My Projects>javac -source 1.4 MyFirstApplet.java
MyFirstApplet.java:2: package javax.awt does not exist
import javax.awt.Graphics;
MyFirstApplet.java:6: cannot resolve symbol
symbol : class Graphics
location: class MyFirstApplet
        public void paint (Graphics g) {
2 errors

Nothing worthwhile is achieved without effort.

TomPaul July 13th, 2003 08:30 AM

Look a little closer at the code. The class you want to import is:


Associate Instructor - Hofstra University

All times are GMT -4. The time now is 12:03 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.