Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > BOOK: Beginning Java 2
|
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
 
Old September 15th, 2003, 09:16 PM
Registered User
 
Join Date: Aug 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 5, Exercise 2, Class Problems

I am using Codewarrior 6.0 IDE to write many of the java programs for my class. I am supposed to modify the code that is used as a solution for Exercise 2 in Chapter 5 of the Beginning Java 2 SDK 1.4 Edition book. I have downloaded the code and added the files to the Codewarrior project, but I recieve the following error when I attempt to run the project


Exception in thread "main" java.lang.NoClassDefFoundError: mcmlength/mcmlength

I do not understand what is generating this error, and I have attempted to put a package mcmlength; in the mcmlength.java file along with a import mcmlength.*; in the TestLengths.java file.

Is there anyone experienced with Codewarrior that can help me out?
 
Old December 12th, 2003, 07:08 PM
Authorized User
 
Join Date: Nov 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don't think this is a codewarrior error. Did you create the class mcmlength ? i.e. a separate class file in the same project. Have you compiled this class file ?

(I'm working my way through the book too but using jbuilder as the IDE. When I get strange errors, I try the classes from the command line just to check whether it's jbuilder or something else in my code.)


Gill BC





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 5 - Exercise 1 scgtman BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 3 May 16th, 2006 08:10 PM
chapter 9 exercise michaelcode BOOK: Beginning ASP.NET 1.0 1 April 9th, 2006 03:56 PM
Chapter 4, Exercise 3 DRAYKKO BOOK: Beginning Java 2 3 July 9th, 2004 02:34 PM
Chapter 6 - problems with exercise jedster BOOK: Beginning Access VBA 0 May 21st, 2004 07:12 AM
Chapter 8, Exercise 4 cjo BOOK: Beginning ASP.NET 1.0 0 November 3rd, 2003 02:26 PM





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