Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Sep 2008 03:37:53 -0700
From:      Jeremy Chadwick <koitsu@FreeBSD.org>
To:        Marcel Grandemange <thavinci@thavinci.za.net>
Cc:        freebsd-java@freebsd.org
Subject:   Re: Error: Can't find libjava.so
Message-ID:  <20080916103753.GA62307@icarus.home.lan>
In-Reply-To: <01a301c917e6$6df6af50$49e40df0$@za.net>
References:  <015101c9164a$f3f12d30$dbd38790$@za.net> <20080915093815.GA33139@icarus.home.lan> <002b01c91737$2af8ac30$80ea0490$@za.net> <20080915152631.GA39924@icarus.home.lan> <00be01c9176a$182f3910$488dab30$@za.net> <20080916043322.GA54034@icarus.home.lan> <018f01c917e1$0e250f40$2a6f2dc0$@za.net> <20080916100727.GA60836@icarus.home.lan> <01a301c917e6$6df6af50$49e40df0$@za.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Sep 16, 2008 at 12:24:41PM +0200, Marcel Grandemange wrote:
> >What does "file /usr/local/diablo-jre1.6.0/lib/amd64/libjava.so" return?
> 
> [root@testvmbsd /opt/MonitorSoftware]# file
> /usr/local/diablo-jre1.6.0/lib/amd64/libjava.so
> /usr/local/diablo-jre1.6.0/lib/amd64/libjava.so: ELF 64-bit LSB shared
> object, x86-64, version 1 (FreeBSD), not stripped
> 
> I did same with original file that came packages with application,
> 
> [root@testvmbsd /opt/MonitorSoftware]# file
> /usr/home/thavinci/Winpower_setup_FreeBSD/FreeBSD/resource/jre/lib/i386/libj
> ava.so
> /usr/home/thavinci/Winpower_setup_FreeBSD/FreeBSD/resource/jre/lib/i386/libj
> ava.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (FreeBSD),
> dynamically linked, not stripped

Okay, the part that's confusing me here is something that was partially
covered by Dan Nelson earlier in this thread.  I can tell you're running
64-bit FreeBSD (amd64).

The "Winpower" (whatever that is) program is 32-bit.


The diablo-jre1.6.0 port, when you installed it, is using a 64-bit
libjava.so.

You're trying to use a 32-bit Java program (Winpower) using 64-bit Java
sources (Diablo).  Dan's comments indicate this won't work.

Note that there is a compatibility layer available called lib32,
allowing 32-bit programs which use 32-bit libraries to use /usr/lib32,
on a 64-bit machine.  lib32 is part of the FreeBSD base system and is
built with world.

You're going to need a 64-bit version of Winpower, or you're going to
need a 32-bit version of Diablo.  I'm not sure how you can get the
latter; there may be a way in the ports tree to force a 32-bit build on
a 64-bit machine.

You could also reinstall FreeBSD i386 (not amd64), which should
ensure everything on your machine is 32-bit.

-- 
| Jeremy Chadwick                                jdc at parodius.com |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                  Mountain View, CA, USA |
| Making life hard for others since 1977.              PGP: 4BD6C0CB |




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