Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jan 2004 16:07:20 -0500 (EST)
From:      Daniel Eischen <eischen@vigrid.com>
To:        Gordon Bergling <gbergling@0xfce3.net>
Cc:        freebsd-java@freebsd.org
Subject:   Re: Problems with libkse (was: stable java environment on FreeBSD 5.2-RELEASE)
Message-ID:  <Pine.GSO.4.10.10401281602470.14141-100000@pcnet5.pcnet.com>
In-Reply-To: <20040128205012.GA2428@nemesis.md.0xfce3.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 28 Jan 2004, Gordon Bergling wrote:

> Hi freebsd-java@,
> 
> On Tue Jan 27, 2004 at 07:06PM +0100, Gordon Bergling wrote:
> > Hi freebsd-java@,
> > 
> > I would like to setup a stable java environment on a FreeBSD 5.2-RELEASE
> > system. The primary goal for this is to coding java programs with
> > eclipse. I have read all information I found on google.com and
> > freebsd.org/java, but I don't get all answers for the questions I have.
> > ;)
> > 
> > I had tried the installation of jdk-1.3 but the only version I get to
> > work was the 'linux-sun-jdk1.3'. I am a little bit confused about these
> > many versions around. So here are the questions. :)
> 
> I had successfully installed a jdk1.4.2p6 without problems. I tried some
> java programs and benchmarks. They all seems to run normal. At next I
> installed eclipse from a recent ports-tree. If I start eclipse it 
> was starting the gui and stopped afterwards. The application was stalled without
> getting any response from it. The output of top was a little bit confusing.
> The java process used minimal cpu time, but the system value was nearly
> 100 percent. So I tried 'top -S' to see if any kernel process is
> consuming all the time, but there was nothing unusual.

You can't mix and match libc_r, libkse, and libthr.  One and
only one library can be used.  Once you start bringing other
libraries into Java, like graphics which can bring in a
threads library, you have to be sure that all thread
libraries are the same.

In short, you have to use /etc/libmap.conf to globally
map libc_r to libkse in order to get the JDK to work
with libkse.

> After changed libkse to libc_r via /etc/libmap.conf the applications
> started normal.

Now reverse the map so that libc_r is mapped to libkse.

-- 
Dan Eischen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10401281602470.14141-100000>