System.getProperty("java.home") gets wrong value!?!

Hi there,

I set the JAVA_HOME environment-property on my WinXP to

"C:\programs\f-j\java"

but when I call

System.getProperty("java.home")

I get

"C:\programs\f-j\java\jre\"

does anyone know why?

[347 byte] By [JebeDi@H] at [2007-9-30 11:41:33]
# 1
Hi,java.home system property points to the directory where JRE is installed,hence the value what you get is correct.-Amol
ad136217 at 2007-7-4 13:01:20 > top of Java-index,Administration Tools,Sun Connection...