Ming-Ching Tiew wrote:

> Steve Cohen wrote:
> >
> > I have built an application and an applet using jdk 1.1.6 under linux
> > RedHat 5.0.  Both the application and the applet (which use much of the
> > same code) compile and work under linux.
> > When I copy the class files to a Win95 system, they fail with
> > NoClassDefFoundError.
> > If, instead, I copy the .java files to the Win95 system and compile them
> > there, then again, both the applet and the application run exactly as
> > they did under linux.
> >
> > Why could this be happening?
>
> If what you claim is true, then this is really worthy of further
> investigation. The problem of Java WORA is usually a lot more subtle
> then this, it is usually something along the line of slight
> differences in behaviour, GUI for example. It shouldn't be as
> gross as what you described.
>
> Ming-Ching

Yes, I do notice some slight differences in GUI, but I'm not concerned about
those for now.
It's really pretty straightforward.  The CLASSPATH is not the issue as
transferred class files fail but recompiled source succeeds with the same
CLASSPATH.  I copied the files across using a DOS floppy disk and the linux
mcopy program.   The files were copied in jar's, first a jar with the class
files and then a different jar with the source files.
A key clue is this:  When we get the NoClassDefFoundError, the class it is
looking for is package.xxxx1.class.  No such class exists, but package.xxxx
is the class containing the main
method.

Reply via email to