(Sun bug # 6674346)
JRE 1.7 build 24 reports java.vm.version incorrectly; it reports 1.2.0-b01, the HotSpot build, instead. JRE 1.7 build 16 worked fine. Java 1.6.0_05 also reports the wrong java.vm.version.
If you have any insights, workarounds or comments about this test page please contact Mickey Segal. A listing of many Java resources is at this link.
import java.applet.*;
import java.awt.*;
public class java_version extends Applet {
public void init()
{
setBackground(new Color(225,225, 255));
}
public void paint(Graphics g)
{
g.drawString("java.version = " + System.getProperty("java.version"), 5 , 30);
g.drawString("java.vm.version = " + System.getProperty("java.vm.version"), 5 , 60);
}
} // END OF Class java_version