Problems with libkse (was: stable java environment on FreeBSD
5.2-RELEASE)
Daniel Eischen
eischen at vigrid.com
Wed Jan 28 13:07:29 PST 2004
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
More information about the freebsd-java
mailing list