I develop plugins (to be honest I started not so long time ago) and test my plugins on different Eclipses. I have Eclipse 3.4, 3.5, 3.6 installed. in C:\Program Files\Java there are:
- jdk1.5.0_22
- jdk1.6.0_21
- jre1.5.0_22
- jre6
for all versions of Eclipses, in here (Windows -> Preferences -> Installed JREs) there is "jdk1.5.0_22" with the path "C:\Program Files\Java\jdk1.5.0_22"
So, can not figure out why for Eclipse 3.5 and 3.6 this
System.getProperty("java.home")
prints
C:\Program Files\Java\jdk1.5.0_22\jre
but in Eclipse 3.4 it prints
C:\Program Files\Java\jre6
Could anyone give me a glue which value is used by System.getProperty("java.home")?