From owner-freebsd-java@FreeBSD.ORG Tue May 26 19:01:49 2009 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BEAC0106574B for ; Tue, 26 May 2009 19:01:49 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from chen.org.nz (ip-58-28-152-174.static-xdsl.xnet.co.nz [58.28.152.174]) by mx1.freebsd.org (Postfix) with ESMTP id 290B58FC08 for ; Tue, 26 May 2009 19:00:59 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: by chen.org.nz (Postfix, from userid 1000) id 666B228414; Wed, 27 May 2009 07:00:55 +1200 (NZST) Date: Wed, 27 May 2009 07:00:55 +1200 From: Jonathan Chen To: Maho NAKATA Message-ID: <20090526190055.GA17574@osiris.chen.org.nz> References: <20090510210726.C9DE52840C@chen.org.nz> <20090526.164036.55849859.chat95@mac.com> <20090526.205337.193713045.chat95@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090526.205337.193713045.chat95@mac.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-java@freebsd.org Subject: Re: openjdk dies with: could not find libjava.so as root X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 May 2009 19:01:50 -0000 On Tue, May 26, 2009 at 08:53:37PM +0900, Maho NAKATA wrote: > Hi > I cannot launch openjdk java as root > > # 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 > > 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) > Something strange about your environment? On my system it looks like: osiris-~,6:59am> which java /usr/local/bin/java osiris-~,6:59am> java -version openjdk version "1.6.0-internal" OpenJDK Runtime Environment (build 1.6.0-internal-root_24_may_2009_16_24-b00) OpenJDK 64-Bit Server VM (build 11.0-b17, mixed mode) osiris-~,6:59am> su - Password: osiris-~,6:59am# which java /usr/local/bin/java osiris-~,6:59am# java -version openjdk version "1.6.0-internal" OpenJDK Runtime Environment (build 1.6.0-internal-root_24_may_2009_16_24-b00) OpenJDK 64-Bit Server VM (build 11.0-b17, mixed mode) Is you LD_LIBRARY_PATH set? -- Jonathan Chen ---------------------------------------------------------------------- Power corrupts, Absolute Power is pretty neat