Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 May 2001 19:58:50 -0700 (PDT)
From:      Norbert Papke <npapke@acm.org>
To:        westbay <westbay@seaple.icc.ne.jp>
Cc:        <java@FreeBSD.ORG>
Subject:   Re: Baffled: Linux JDK 1.3.0 Port
Message-ID:  <20010509195125.O15988-100000@localhost.telus.net>
In-Reply-To: <200105100117.KAA17097@uhpux01.beacon-it.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help

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?

Cheers.

On Thu, 10 May 2001, westbay wrote:

> Papke-san wrote:
>
> > If a build a java app (even a simple "Hello world") and try to run it from
> > my home directory I inevitably get the following error:
> >
> >    % java Hello
> >    Exception in thread "main" java.lang.NoClassDefFoundError: Hello
>
> try:
>
>     % java -classpath . Hello
>
> > However, the exact same class file executed from /tmp works perfectly.
>
> Did you execute:
>
>     % java -classpath /tmp Hello
>
> when it worked?
>
> Hope this helps.
>
> --
> Michael Westbay
> Work: Beacon-IT http://www.beacon-it.co.jp/
> Home:           http://www.seaple.icc.ne.jp/~westbay
> Commentary:     http://www.japanesebaseball.com/
>



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?20010509195125.O15988-100000>