The Mac includes a Java Preferences App (Applications -> Utilities -> Java Preferences) that lets you set the preferred order of Java versions to run when you launch a Java application or applet within a browser.With UPD4 (and some earlier updates), Java 6 is installed as well, but it is not set as the default JDK. Mac OSX 10.5 comes with Java installed by default and includes multiple versions. Even though you might get away with this for a little while, it will bite you eventually for various reasons. Here are a few concepts that need to be understood about the Mac/Java environment before you go off and just try to set JAVA_HOME in your favorite shell environment to some other location. If you just want to fix it quick, because something broke since you installed UPD4, then see the Bottom Line below.įor those that want to know a little bit more why your environment broke and the Java Preferences app doesn’t seem to do what you think it should, please read on. These articles were valid until some very recent updates to Java were released, specifically the Leopard 10.5.7 Java Update 4 (referred to as UPD4 from here on). This article is also intended to correct many other (now incorrect) articles attempting to help with the same issue. This blog will point out a few things you might not expect coming from a Windows or Linux environment. Switching Java versions from say, Java 5 to Java 6 or back is (probably) not intuitive for the new Mac user.
0 Comments
Leave a Reply. |