Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 May 2001 20:26:28 -0700
From:      Cedric Berger <cedric@wireless-networks.com>
To:        Norbert Papke <npapke@acm.org>
Cc:        westbay <westbay@seaple.icc.ne.jp>, java@FreeBSD.ORG
Subject:   Re: Baffled: Linux JDK 1.3.0 Port
Message-ID:  <3AFA0A63.3D1ED647@wireless-networks.com>
References:  <20010509195125.O15988-100000@localhost.telus.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Norbert Papke wrote:

> Just to clrarify, this is what happens:
>
>   /usr/home/npapke %ll Hello.class
>   -rw-r--r--  1 npapke  npapke  416 May  9 19:54 Hello.class
>   /usr/home/npapke %java -classpath . Hello
>   Exception in thread "main" java.lang.NoClassDefFoundError: Hello
>   /usr/home/npapke %cd /tmp
>   /tmp %cp ~/Hello.class .
>   /tmp %ll Hello.class
>   -rw-r--r--  1 npapke  wheel  416 May  9 19:57 Hello.class
>   /tmp %java -classpath . Hello
>   Hello World!
>
> Is it just me, or is this really odd?

Do your "Hello" class depends on another class?
i.e
 "class Hello extends Babula"
with Babula.class only on /tmp

My point is that the I believe NoClassDefFound can be misleading,
and indicates that a superclass or dependant class is not found.

Cedric



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3AFA0A63.3D1ED647>