Thinking In Java book source code

E

Eric Beragg

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

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
 
R

Rike

Eric said:
Hello,


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

Did you try to run it with:

java Assignment.class

You should use:

java Assignment

Regards, Rike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top