From owner-freebsd-java@FreeBSD.ORG Mon May 10 17:47:21 2010 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A429E1065675 for ; Mon, 10 May 2010 17:47:21 +0000 (UTC) (envelope-from herve.quiroz@trancecode.org) Received: from 63.mail-out.ovh.net (63.mail-out.ovh.net [91.121.185.56]) by mx1.freebsd.org (Postfix) with SMTP id F08CE8FC21 for ; Mon, 10 May 2010 17:47:20 +0000 (UTC) Received: (qmail 4029 invoked by uid 503); 10 May 2010 17:28:10 -0000 Received: from b7.ovh.net (HELO mail187.ha.ovh.net) (213.186.33.57) by 63.mail-out.ovh.net with SMTP; 10 May 2010 17:28:10 -0000 Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 10 May 2010 17:20:39 -0000 Received: from reverse2.evolix.net (HELO herve-laptop-componize) (herve.quiroz@trancecode.org@88.179.18.233) by ns0.ovh.net with SMTP; 10 May 2010 17:20:39 -0000 Date: Mon, 10 May 2010 19:20:37 +0200 From: Herve Quiroz To: "Osipov, Michael" Message-ID: <20100510172037.GA15924@herve-laptop-componize> Mail-Followup-To: "Osipov, Michael" , "freebsd-java@freebsd.org" References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux 2.6.31-21-generic x86_64 User-Agent: Mutt/1.5.20 (2009-06-14) X-Ovh-Tracer-Id: 4640677942010487011 X-Ovh-Remote: 88.179.18.233 (reverse2.evolix.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|U 0.5/N Cc: "freebsd-java@freebsd.org" Subject: Re: Erratic JAVA_HOME output 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: Mon, 10 May 2010 17:47:21 -0000 On Fri, May 07, 2010 at 11:06:19AM +0200, Osipov, Michael wrote: > Then I wrote a litle test app: > public class JavaHomeInfo { > public static void main(String... args) { > System.out.println(System.getProperty("java.home")); > } > } > > And the output is: > $ java JavaHomeInfo > /usr/local/diablo-jdk1.6.0/jre FYI, I was intrigued and ran this on a Linux box. And it outputs the same thing as on FreeBSD: $ java JavaHomeInfo /usr/lib/jvm/java-6-sun-1.6.0.20/jre So it seems to me the behavior on your machine is correct. Herve