Re: Thinking in Java book Source Code
- From: Raymond DeCampo <nospam@xxxxxxxxxxxx>
- Date: Thu, 21 Apr 2005 00:14:57 GMT
Eric Beragg wrote:
Hello,
I'm eager to read the book Thinking in Java, by Bruce Eckler. Unfortunately, i've spent quite some hours trying to get the code from chapter 3 to run. I found several "solutions" everywhere on the net (i've also gone through the steps given on his own website, and read the info in chapter 5), though none seem to work for me.
When trying to run the Assignment.class file from chapter 3 (after a successfull compilation b.t.w.) i get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: Assignment/class
The problem is likely that you are invoking the class using the command "java Application.class" versus the command "java Application".
Now, I understand this should come from the fact that the specified packages in the source code can't be found during run-time because of the CLASSPATH environment variable (correct me if i'm wrong). I've set the following CLASSPATH:
CLASSPATH=.;C:\j2sdk1.4.2_08\lib;D:\TIJ\code PATH= ... C:\j2sdk1.4.2_08\bin
So, the root of the source code is in d:\tij\code. I'm running J2SDK1.4.2_08 now, though i've tried the 1.5.0 version first. Please, please, please, can anyone help me out? Thanks in advance!
Eric Beragg
HTH, Ray
-- XML is the programmer's duct tape. .
- References:
- Thinking in Java book Source Code
- From: Eric Beragg
- Thinking in Java book Source Code
- Prev by Date: Re: java error message?
- Next by Date: Re: *NOTE* This is a RETIRED java newsgroup. Please redirect.
- Previous by thread: Thinking in Java book Source Code
- Index(es):
Relevant Pages
|