From owner-freebsd-java Wed May 9 17:58:40 2001 Delivered-To: freebsd-java@freebsd.org Received: from uhpux01.beacon-it.co.jp (bconns1.beacon-it.co.jp [210.169.183.4]) by hub.freebsd.org (Postfix) with ESMTP id 736DB37B422 for ; Wed, 9 May 2001 17:58:37 -0700 (PDT) (envelope-from westbay@seaple.icc.ne.jp) Received: from webdekintai.beacon-it.co.jp (nypc103.beacon-it.co.jp [172.22.124.103]) by uhpux01.beacon-it.co.jp (8.9.3/8.9.3) with SMTP id KAA17097 for ; Thu, 10 May 2001 10:17:09 +0900 Message-Id: <200105100117.KAA17097@uhpux01.beacon-it.co.jp> Date: Thu, 10 May 2001 09:58:31 +0900 From: westbay To: java@FreeBSD.ORG Subject: Re: Baffled: Linux JDK 1.3.0 Port In-Reply-To: <20010509160211.Q14705-100000@localhost.telus.net> References: <20010509160211.Q14705-100000@localhost.telus.net> X-Mailer: Sylpheed version 0.4.62 (GTK+ 1.2.10; i386--freebsd4.3) Organization: ProYakyu.com Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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