From owner-freebsd-java Wed Jan 13 13:14:33 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA02027 for freebsd-java-outgoing; Wed, 13 Jan 1999 13:14:33 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from ns.mt.sri.com (sri-gw.MT.net [206.127.105.141]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA02020 for ; Wed, 13 Jan 1999 13:14:32 -0800 (PST) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id OAA04896; Wed, 13 Jan 1999 14:13:24 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id OAA29747; Wed, 13 Jan 1999 14:13:23 -0700 Date: Wed, 13 Jan 1999 14:13:23 -0700 Message-Id: <199901132113.OAA29747@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Skylink Cc: freebsd-java@FreeBSD.ORG Subject: Re: help with a jre problem. In-Reply-To: <369CF798.39D488BB@skylink.net> References: <369CF798.39D488BB@skylink.net> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I installed the jdk and kaffe from the ports collection of a FreeBSD > 2.2.8-Stable installation. > > I was having a problem not being able to find the class files. Here is > the error message I got when trying to run a java application with > kaffe. > > su-2.02$ kaffe -classpath "/usr/home/power/server_classes/" STServer > 10000 9004 > Cannot find essential class 'java/lang/Object' in class library ... > aborting. > Abort trap (core dumped) First of all, this is a 'kaffe' error, not a JDK/JRE error. Others may be able to say more on this, but since you're using the kaffe VM which is a clone of the 'java' VM, you must explicitly list *ALL* of the necessary classes. > I solved this error message by adding the classpath to the classes.zip > file. > kaffe -classpath > "/usr/local/jdk1.1.7/lib/classes.zip:/usr/home/power/server_cl > asses/" STServer 10000 9004 You got it. > But now when I try to run any java applications it just swells in memory > to above 85megs. It also pegs out the processer to 98%. I don't think you can mix the 'JDK' classes and the 'kaffe' classes. I don't know how to point it at the Kaffe classes, but if you were using Java it would be: java -classpath \ /usr/local/jdk1.1.7/lib/classes.zip:/usr/home/power/server_classes \ STServer 10000 9004 No need for quotes. If it works fine, then somehow kaffe is messed up or you need to run it differently for kaffe. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message