Erratic JAVA_HOME output

Herve Quiroz herve.quiroz at trancecode.org
Mon May 10 17:47:21 UTC 2010


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


More information about the freebsd-java mailing list