Antarctica, Winter 1982 (ivorjawa) wrote in macosxdev,
Antarctica, Winter 1982
ivorjawa
macosxdev

Java preferences is doing something I don't understand

I'm running Snow Leopard, with Java 1.4.2, 5.0, and 6 installed.

Java Preference can switch between them, as evidenced by running "java -version".
However, if I have JAVA_HOME set, java 6 is the only version that is selected. This is with JAVA_HOME set to /Library/Java/Home as recommended by Apple.

[kujawa@dhcp-0-244 ~]$ java -version
java version "1.4.2_21"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_21-b01-324)
Java HotSpot(TM) Client VM (build 1.4.2-92, mixed mode)
[kujawa@dhcp-0-244 ~]$ setjhome 
[kujawa@dhcp-0-244 ~]$ echo $JAVA_HOME
/Library/Java/Home
[kujawa@dhcp-0-244 ~]$ java -version
java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)
  • Post a new comment

    Error

    default userpic

    Your IP address will be recorded 

  • 6 comments