Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 2009 15:03:11 +0300
From:      Achilleas Mantzios <achill@matrix.gatewaynet.com>
To:        freebsd-java@freebsd.org
Cc:        Maho NAKATA <chat95@mac.com>
Subject:   Re: openjdk dies with: could not find libjava.so as root
Message-ID:  <200905261503.11498.achill@matrix.gatewaynet.com>
In-Reply-To: <20090526.205337.193713045.chat95@mac.com>
References:  <20090510210726.C9DE52840C@chen.org.nz> <20090526.164036.55849859.chat95@mac.com> <20090526.205337.193713045.chat95@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
=CE=A3=CF=84=CE=B9=CF=82 Tuesday 26 May 2009 14:53:37 =CE=BF/=CE=B7 Maho NA=
KATA =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5:
> Hi
> I cannot launch openjdk java as root
>=20
> # which java
> /usr/local/openjdk6/bin/java
> root# java
> Error: could not find libjava.so
> Error: could not find Java 2 Runtime Environment.
> root# pkg_info | grep openjdk
> openjdk6-b16_1      Sun\'s java 6 virtual machine release under the GPL v2
>=20
> however as normal user:
> % which java
> /usr/X11R6/bin/java
> % java -version
> openjdk version "1.6.0-internal"
> OpenJDK Runtime Environment (build 1.6.0-internal-maho_26_may_2009_11_16-=
b00)
> OpenJDK 64-Bit Server VM (build 11.0-b17, mixed mode)

Are /usr/X11R6/bin/java and /usr/local/openjdk6/bin/java the same executabl=
e?
How about=20
ldd /usr/X11R6/bin/java=20
ldd /usr/local/openjdk6/bin/java=20

>=20
> strange :)
> best,
> -- Nakata Maho http://accc.riken.jp/maho/ , http://ja.openoffice.org/
>    Nakata Maho's PGP public keys: http://accc.riken.jp/maho/maho.pgp.txt
>=20



=2D-=20
Achilleas Mantzios



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