Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > BOOK: Beginning Java 2
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Java 2
This is the forum to discuss the Wrox book Beginning Java 2, SDK 1.4 Edition by Ivor Horton; ISBN: 9780764543654
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Java 2 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 25th, 2003, 02:05 PM
Registered User
Join Date: Jun 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
  #2 (permalink)  
Old July 13th, 2003, 08:30 AM
Registered User
Join Date: Jul 2003
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts

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


Associate Instructor - Hofstra University

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page 17 - Debugging the First C# Express Project kennethjaysone Book: Wrox's Visual C# 2005 Express Edition Starter Kit 3 September 8th, 2010 04:31 AM
unable to compile class file derricktancf JSP Basics 0 November 1st, 2006 04:42 AM
URGENT - Unable to compile class for jsp Black Balloon Apache Tomcat 6 August 27th, 2004 06:38 PM
DataGrid Updates BLANK PAGE (Chapter 17) happyhorseygal BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 1 April 8th, 2004 01:11 PM

All times are GMT -4. The time now is 04:53 AM.

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