Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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.


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





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