Error: Can't find libjava.so
Jeremy Chadwick
koitsu at FreeBSD.org
Tue Sep 16 10:53:56 UTC 2008
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 at 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 at 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 |
More information about the freebsd-java
mailing list