Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Sep 2008 15:36:53 -0700
From:      Greg Lewis <glewis@eyesbeyond.com>
To:        Dino Vliet <dino_vliet@yahoo.com>
Cc:        java@freebsd.org, glewis@freebsd.org
Subject:   Re: libjvm.so not found on amd64 system with freebsd 7
Message-ID:  <20080907223653.GA6811@misty.eyesbeyond.com>
In-Reply-To: <833002.54826.qm@web51109.mail.re2.yahoo.com>
References:  <833002.54826.qm@web51109.mail.re2.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@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@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@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@eyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewis@FreeBSD.org



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