Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jan 1999 14:13:23 -0700
From:      Nate Williams <nate@mt.sri.com>
To:        Skylink <hermit@skylink.net>
Cc:        freebsd-java@FreeBSD.ORG
Subject:   Re: help with a jre problem.
Message-ID:  <199901132113.OAA29747@mt.sri.com>
In-Reply-To: <369CF798.39D488BB@skylink.net>
References:  <369CF798.39D488BB@skylink.net>

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



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