From owner-freebsd-java Fri Oct 6 9:18:50 2000 Delivered-To: freebsd-java@freebsd.org Received: from marcos.networkcs.com (marcos.networkcs.com [137.66.16.1]) by hub.freebsd.org (Postfix) with ESMTP id 001FF37B66E for ; Fri, 6 Oct 2000 09:18:46 -0700 (PDT) Received: from us.networkcs.com (us.networkcs.com [137.66.11.15]) by marcos.networkcs.com (8.9.3/8.9.3) with ESMTP id LAA58108; Fri, 6 Oct 2000 11:18:46 -0500 (CDT) (envelope-from jpt@us.networkcs.com) Received: (from jpt@localhost) by us.networkcs.com (8.9.2/8.9.2) id LAA09698; Fri, 6 Oct 2000 11:18:45 -0500 (CDT) (envelope-from jpt) From: Joseph Thomas Message-Id: <200010061618.LAA09698@us.networkcs.com> Subject: Re: Java CLASSPATH problem To: alex@frustum.clara.co.uk (Aleksandar Simic') Date: Fri, 6 Oct 2000 11:18:45 -0500 (CDT) Cc: fuyuhik8@is.titech.ac.jp (Fuyuhiko Maruyama), freebsd-java@FreeBSD.ORG In-Reply-To: <20001006164844.A864@frustum.clara.co.uk> from "Aleksandar Simic'" at Oct 06, 2000 04:48:44 PM X-Mailer: ELM [version 2.5 PL2] 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 > > [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. -- Joseph Thomas E/Mail: jpt@networkcs.com Network Computing Services, Inc. jpt@magic.net 1200 Washington Ave So. Tel: +1 612 337 3558 Minneapolis, MN 55415-1227 FAX: +1 612 337 3400 An elephant is a mouse with an operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message