From owner-freebsd-java Fri Oct 6 8:43:36 2000 Delivered-To: freebsd-java@freebsd.org Received: from oracle.clara.net (oracle.clara.net [195.8.69.94]) by hub.freebsd.org (Postfix) with ESMTP id 5E7AD37B502 for ; Fri, 6 Oct 2000 08:43:33 -0700 (PDT) Received: from [195.8.89.193] (helo=myname.my.domain) by oracle.clara.net with esmtp (Exim 3.11 #5) id 13hZel-0000MO-00; Fri, 06 Oct 2000 16:43:32 +0100 Received: (from alex@localhost) by myname.my.domain (8.9.3/8.9.3) id QAA00982; Fri, 6 Oct 2000 16:48:45 +0100 (BST) (envelope-from alex) Date: Fri, 6 Oct 2000 16:48:44 +0100 From: "Aleksandar Simic'" To: Fuyuhiko Maruyama Cc: freebsd-java@freebsd.org Subject: Re: Java CLASSPATH problem Message-ID: <20001006164844.A864@frustum.clara.co.uk> References: <20001006162715.A745@frustum.clara.co.uk> <55d7hem1hk.wl@is.titech.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <55d7hem1hk.wl@is.titech.ac.jp>; from fuyuhik8@is.titech.ac.jp on Sat, Oct 07, 2000 at 12:29:59AM +0900 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, Oct 07, 2000 at 12:29:59AM +0900, Fuyuhiko Maruyama wrote: > Hi, > > At Fri, 6 Oct 2000 16:27:15 +0100, > Aleksandar Simic' wrote: > > classpath set in ~/.profile: > > CLASSPATH=.:/usr/local/jdk1.1.8/lib/calsses.zip; export CLASSPATH > ^^^^^^^typo? Doh ! [hits the head on the nearest wall *really* hard, repeatedly] > > [alex@~/study/internet_prog_3sfe217] echo $CLASSPATH > > .:/usr/local/jdk1.1.8/lib/calsses.zip > ^^^^^^^typo? [and again] > In fact, you need not specify these. > > > [alex@~/study/internet_prog_3sfe217] javac HelloWorld.java > > [alex@~/study/internet_prog_3sfe217] java HelloWorld.class > All you need to run your HelloWorld is > java HelloWorld > The suffix '.class' is never needed. That solved the problem. Thank you. And thanks to the rest of you for pointing this out. Fuyuhiko just happen to be the first one to spot it. > Go! Yep, I'm going ... going to sit in the corner and die of embarrassment :( Thanks again to all. --Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message