From owner-freebsd-java Wed Jan 12 13:32: 1 2000 Delivered-To: freebsd-java@freebsd.org Received: from tccn.cs.kun.nl (tccn.cs.kun.nl [131.174.32.38]) by hub.freebsd.org (Postfix) with ESMTP id 134D714E2F for ; Wed, 12 Jan 2000 13:31:59 -0800 (PST) (envelope-from yoken42@hotmail.com) Received: from hotmail.com (kees.sci.kun.nl [131.174.10.40]) by tccn.cs.kun.nl (8.9.2/8.9.2) with ESMTP id WAA72487; Wed, 12 Jan 2000 22:31:20 +0100 (CET) (envelope-from yoken42@hotmail.com) Message-ID: <387CF2B5.6A8CB9B@hotmail.com> Date: Wed, 12 Jan 2000 22:31:33 +0100 From: Yoken X-Mailer: Mozilla 4.7 [en] (X11; I; FreeBSD 3.4-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-java@freebsd.org, vic@mbfys.kun.nl Subject: jre cannot load class it just loaded Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Dear FreeBSD Java mailing list, I seem to have a little argument with jre. It keeps telling me that it cannot load a class file from a jar file, even though it can do so. It seems related to the CLASSPATH setting, but I'm not sure what the problem might be. LikeEver% export CLASSPATH= LikeEver% jre -cp client.jar games.client.GameClient localhost Class not found: games.client.GameClient LikeEver% export CLASSPATH=/usr/local/jdk1.1.8/lib/classes.zip:/usr/local/swing-1.1.1fcs/swingall.jar LikeEver% jre -cp client.jar games.client.GameClient localhost LikeEver% What's more, if I unset the classpath and look at jre -v I get the following: LikeEver% export CLASSPATH= LikeEver% jre -v -cp client.jar games.client.GameClient localhost [Loaded java/lang/Thread.class from /usr/local/jdk1.1.8/lib/classes.zip] ... ... [Loaded java/lang/Compiler.class from /usr/local/jdk1.1.8/lib/classes.zip] [Loaded games/client/GameClient.class from client.jar] Class not found: games.client.GameClient LikeEver% It loads the class from the jar file, and then turns around and tells me it's not there. %-) Is this FreeBSD specific? Is this a bug? Yours, Kees Jan ---------------------------------------------------------------------- Kees Jan Koster e-mail: dutchman "at" tccn.cs.kun.nl ---------------------------------------------------------------------- Calvin: "Sometimes the world seems like a pretty mean place." Hobbes: "That's why animals are so soft and huggy." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message