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
Register
| 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 July 12th, 2004, 10:32 PM
Registered User
 
Join Date: Jul 2004
Location: Reynoldsburg, OH, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sfarber53 Send a message via Yahoo to sfarber53
Default imports - Chapter 2

I have successfully installed and set-up the j2sdk 1.4 on my SuSE Linux 9.0 box, including the business of exporting the path to the Java compiler and other binaries.

My problem comes in running the Fruit.java class on p. 48. The system doesn't seem to recogize the statement:

     import java.io.IOException;

It also doesn't recognize the -ea compiler tag to enable assertions as the text says it should.

Can anyone help me out on this. I've looked for the location for the IOException classes and cannot find them.

Many thanks in advance,

Steve

  #2 (permalink)  
Old July 15th, 2004, 06:06 AM
Authorized User
 
Join Date: Sep 2003
Location: den Haag, , Netherlands.
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by sfarber53
 I have successfully installed and set-up the j2sdk 1.4 on my SuSE Linux 9.0 box, including the business of exporting the path to the Java compiler and other binaries.

My problem comes in running the Fruit.java class on p. 48. The system doesn't seem to recogize the statement:

     import java.io.IOException;

It also doesn't recognize the -ea compiler tag to enable assertions as the text says it should.

Can anyone help me out on this. I've looked for the location for the IOException classes and cannot find them.

Many thanks in advance,

Steve

Your import statement should supply the IOException class!
So the SDK or the classpath has not been set up properly.
I don't know Linux, but the SDK Documentation supplies a lot of info on different platform implementations. You should already have it installed but the link is:

SDK 1.4.2 Documentation
http://java.sun.com/j2se/1.4.2/docs/index.html

SDK 1.4.2 API
http://java.sun.com/j2se/1.4.2/docs/api/
Click in top left frame:
java.io
Listed in the bottom left frame are:
Interfaces, Classes, Exceptions

Francis
  #3 (permalink)  
Old September 19th, 2010, 07:43 PM
Registered User
 
Join Date: Sep 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Thanks

I was stuck on this one, thanks everyone.
 


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
Generics chapter 12 difficult chapter i found ...? Larryz C# 2005 1 July 4th, 2007 09:40 PM
Imports with .VB files Doldrums VB.NET 2002/2003 Basics 6 November 11th, 2004 09:58 AM
Excel Text Imports Revisited bph Access 5 April 1st, 2004 07:35 AM
Page 57 Imports Sytem.Web.UI martina68 BOOK: ASP.NET Website Programming Problem-Design-Solution 1 February 16th, 2004 12:28 PM
Help on ListBox imports text tdeng Beginning VB 6 2 December 22nd, 2003 02:46 PM



All times are GMT -4. The time now is 11:19 AM.


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