From owner-freebsd-java Wed May 9 19:58:59 2001 Delivered-To: freebsd-java@freebsd.org Received: from priv-edtnes09-hme0.telusplanet.net (mtaout.telus.net [199.185.220.235]) by hub.freebsd.org (Postfix) with ESMTP id CB0EF37B422 for ; Wed, 9 May 2001 19:58:55 -0700 (PDT) (envelope-from npapke@acm.org) Received: from localhost.telus.net ([216.232.236.201]) by priv-edtnes09-hme0.telusplanet.net (InterMail vM.4.01.03.10 201-229-121-110) with ESMTP id <20010510025855.ZPZO2141.priv-edtnes09-hme0.telusplanet.net@localhost.telus.net>; Wed, 9 May 2001 20:58:55 -0600 Received: from localhost (localhost [127.0.0.1]) by localhost.telus.net (8.11.3/8.11.1) with ESMTP id f4A2woi16396; Wed, 9 May 2001 19:58:50 -0700 (PDT) (envelope-from npapke@acm.org) Date: Wed, 9 May 2001 19:58:50 -0700 (PDT) From: Norbert Papke Reply-To: Norbert Papke To: westbay Cc: Subject: Re: Baffled: Linux JDK 1.3.0 Port In-Reply-To: <200105100117.KAA17097@uhpux01.beacon-it.co.jp> Message-ID: <20010509195125.O15988-100000@localhost.telus.net> Organization: Archaeological Filing MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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