libjvm.so not found on amd64 system with freebsd 7

Greg Lewis glewis at eyesbeyond.com
Sun Sep 7 22:46:49 UTC 2008


On Sun, Sep 07, 2008 at 11:23:23AM -0700, Dino Vliet wrote:
> Hi all,due to this opera errer I get when I want to test the working of my java browser plugin I get a message that libjvm.so is not found on my amd64 box running freebsd 7.The commands I type are:[root at dual /usr/ports/math]# ldd /usr/local/diablo-jdk1.6.0/jre/lib/amd64/libjava.so
> /usr/local/diablo-jdk1.6.0/jre/lib/amd64/libjava.so:
> /libexec/ld-elf.so.1: /usr/local/diablo-jdk1.6.0/jre/lib/amd64/libjava.so: Unexpected  inconsistency: dependency libjvm.so not found
> /usr/local/diablo-jdk1.6.0/jre/lib/amd64/libjava.so: exit status 1
> [root at dual /usr/ports/math]# ldd /usr/local/jdk1.6.0/jre/lib/amd64/libjava.so
> /usr/local/jdk1.6.0/jre/lib/amd64/libjava.so:
> /libexec/ld-elf.so.1: /usr/local/jdk1.6.0/jre/lib/amd64/libjava.so: Unexpected  inconsistency: dependency libjvm.so not found
> /usr/local/jdk1.6.0/jre/lib/amd64/libjava.so: exit status 1
> [root at dual /usr/ports/math]# whereis libjvm.so
> libjvm.so:

That all looks pretty much normal.  Unless you've got LD_LIBRARY_PATH set
up to do so, ldd isn't going to find libjvm.so (and you don't actually
want LD_LIBRARY_PATH set up that way under normal circumstances).

> The question is, is there something wrong with my java installation?

Unlikely.  If /usr/local/jdk1.6.0/jre/lib/amd64/{client,server}/libjvm.so
exist then your installation is fine.

> [root at dual /usr/ports/math]# pkg_info | grep Java
> diablo-jdk-1.6.0.07.02 Java Development Kit 1.6.0_07.02
> diablo-jre-1.6.0.07.02 Java Runtime Environment 1.6.0_07.02
> javavmwrapper-2.3.2 Wrapper script for various Java Virtual Machines
> jdk-1.6.0.3p4_3     Java Development Kit 1.6.0
> netbeans55-5.5.1_1  A free and open-source IDE for Java
> weka-3.4.13         Data Mining Software in Java
> 
> What should I do to let this opera error message go away?opera: Shared object "libjvm.so" not found, required by "opera"

You should find out where Opera is expecting this to exist.  As a hack
you could try setting up LD_LIBRARY_PATH to have libjvm.so in it, but
thats not the real fix.

-- 
Greg Lewis                          Email   : glewis at eyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewis at FreeBSD.org


More information about the freebsd-java mailing list