Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Oct 2000 19:56:41 +0100
From:      Rasputin <rasputin@FreeBSD-uk.eu.org>
To:        freebsd-java@freebsd.org
Subject:   Re: Java CLASSPATH problem
Message-ID:  <20001006195641.A63752@dogma.freebsd-uk.eu.org>
In-Reply-To: <200010061618.LAA09698@us.networkcs.com>; from jpt@networkcs.com on Fri, Oct 06, 2000 at 11:18:45AM -0500
References:  <20001006164844.A864@frustum.clara.co.uk> <200010061618.LAA09698@us.networkcs.com>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001006195641.A63752>