(Apple bug # 4519400)
Expected Results:
java.vm.version should report 1.5.0_06-112 for Macintosh Java 1.5 Release 4.
The java -version command in Terminal gives:
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)
Actual Results:
java.vm.version reports 1.5.0_06-64
Regression:
Note that java.vm.version reports an empty string on the Microsoft JVM for
Windows.
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(System.getProperty("java.vm.version"), 5 , 30);
}
} // END OF Class java_version