From owner-freebsd-java Fri Oct 6 11:56:46 2000 Delivered-To: freebsd-java@freebsd.org Received: from probity.mcc.ac.uk (probity.mcc.ac.uk [130.88.200.94]) by hub.freebsd.org (Postfix) with ESMTP id 5BF2E37B66E for ; Fri, 6 Oct 2000 11:56:43 -0700 (PDT) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97]) by probity.mcc.ac.uk with esmtp (Exim 2.05 #4) id 13hcfi-000Hfm-00 for freebsd-java@freebsd.org; Fri, 6 Oct 2000 19:56:42 +0100 Received: (from rasputin@localhost) by dogma.freebsd-uk.eu.org (8.9.3/8.9.3) id TAA63899 for freebsd-java@freebsd.org; Fri, 6 Oct 2000 19:56:42 +0100 (BST) (envelope-from rasputin) Date: Fri, 6 Oct 2000 19:56:41 +0100 From: Rasputin To: freebsd-java@freebsd.org Subject: Re: Java CLASSPATH problem Message-ID: <20001006195641.A63752@dogma.freebsd-uk.eu.org> References: <20001006164844.A864@frustum.clara.co.uk> <200010061618.LAA09698@us.networkcs.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200010061618.LAA09698@us.networkcs.com>; from jpt@networkcs.com on Fri, Oct 06, 2000 at 11:18:45AM -0500 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, Oct 06, 2000 at 11:18:45AM -0500, Joseph Thomas wrote: > > > > [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. > > > > I think it's more an issue of you CAN'T specify the trailing > '.class'. Someone will correct me if I'm wrong but I believe that > java will always append the .class so that when you say > java HelloWorld.class > it looks for HelloWorld.class.class. AFAIK, the '.' is interpreted the same way it is in an 'import' statement i.e. java HelloWorld.class means: Run the class called 'class' in the package(directory) called HelloWorld. But then we knew that, didn't we? -- Rasputin Jack of All Trades :: Master of Nuns To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message