Re: Thinking in Java book Source Code



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.
.



Relevant Pages

  • Re: Looking for some design inspiration
    ... We at GemStone Systems have spent a great deal of time and effort to ... a disk file. ... usually to help avoid using too much heap in the virtual machine... ... but only a portion of the table needs to be in the Java heap ...
    (comp.databases.theory)
  • Re: Java outperforms C++?
    ... vs Java. ... If programmers spent all the time they spent on this arguing on ... During peak CPU usage time is not spent on deallocations - response is ... Modern optimizing compilers, profile-guided optimization, modern AI-enabled ...
    (microsoft.public.vc.language)
  • Re: macros
    ... write what you just accused me of misattributing? ... she spent a lot of time complaining about Java? ...
    (comp.lang.lisp)
  • Re: VBs CreateObject for C#
    ... I spent several hours trying to figure out how to get ... C++ to Java ... When I was trying to find something similar to CreateObject(), ... I've been doing some reading on how to get information, ...
    (microsoft.public.dotnet.languages.csharp)