Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 May 2001 09:58:31 +0900
From:      westbay <westbay@seaple.icc.ne.jp>
To:        java@FreeBSD.ORG
Subject:   Re: Baffled: Linux JDK 1.3.0 Port
Message-ID:  <200105100117.KAA17097@uhpux01.beacon-it.co.jp>
In-Reply-To: <20010509160211.Q14705-100000@localhost.telus.net>
References:  <20010509160211.Q14705-100000@localhost.telus.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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?200105100117.KAA17097>