Java SE 6 U5 on Mac OS X Leopard
Yesterday, Apple
href="http://www.apple.com/support/downloads/javaformacosx105update1.html">released
Java SE version 1.6.0_05 for 64-bit Intel-based Mac OS X 10.5.2 or
later.
href="http://www.apple.com/support/downloads/javaformacosx105update1.html">Download
it here!
It's restricted to 64-bit machines and
href="http://headius.blogspot.com/2008/04/apple-chosepoorly.html">Charles
is unhappy about it. Hopefully, they'll release a 32-bit
version as well.
Type "sw_vers" in a terminal to check the Mac OS X version as shown
below:
-
cellpadding="2" cellspacing="2">
~
>sw_vers
ProductName: Mac OS X
ProductVersion: 10.5.2
BuildVersion: 9C31
Alternatively, "About This Mac" in the Apple menu shows you the version
as well as shown below:
src="http://blogs.sun.com/arungupta/resource/images/macosx-about.png">
Anyway, after verifying the system requirements, download
href="http://wsidecar.apple.com/cgi-bin/nph-reg3rdpty2.pl/product=18844&cat=59&platform=osx&method=sa/JavaForMacOSX10.5Update1.dmg">57MB
bundle and install it following the standard instructions.
src="http://blogs.sun.com/arungupta/resource/images/macosx-javase6-install.png">
And now successfully installed:
src="http://blogs.sun.com/arungupta/resource/images/macosx-javase6-install-complete.png">
It gets installed in
"/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0" and shows
the version number as:
>./java -version
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13-120)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_05-b13-52, mixed mode)
The default Java version can be changed by using "Java Preferences" as
shown below:
-
cellpadding="2" cellspacing="2">
/Applications/Utilities/Java/Java
Preferences.app/Contents/MacOS >./"Java Preferences"
The following window shows up:
src="http://blogs.sun.com/arungupta/resource/images/macosx-javase-preferences.png">
Pick the version of your choice and that should get you going!
These are the days before JavaOne
and all my demos on this machine have been
tested using the default J2SE 5. But I'll play with the new release
after JavaOne anyway :)
Do you know
href="http://www.cplan.com/sun/communityone2008/registration/">sign
up for
href="http://wiki.glassfish.java.net/Wiki.jsp?page=EventsCommunityOne2008">GlassFish
Day is FREE and gives you access to
href="http://java.sun.com/javaone/sf/pavilion/">JavaOne
pavilion as well ? Do it now!
A complete archive of all Mac OS X tips on this blog are available
href="http://blogs.sun.com/arungupta/tags/osxtips">here.
Technorati: oxstips
mac
href="http://technorati.com/tag/leopard">leopard
href="http://technorati.com/tag/javase6">javase6
href="http://technorati.com/tag/javase">javase
href="http://technorati.com/tag/jdk">jdk
- Login or register to post comments
- Printer-friendly version
- arungupta's blog
- 13334 reads






Comments
by kajkandler - 2009-03-04 07:37
Correction, because this "wonderful" application does strip all supposed tags. The line looks like <string>-vm</string><string>/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Commands/java</string>by kajkandler - 2009-03-04 07:35
On Mac, you can set the default VM to be 1.6.0 - 64 bit, but you have to configure Eclipse to use the 1.5.0 32 bit JVM. In order to do that un-comment the line -vm/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Commands/java in Eclipse.app/Contents/Info.plist Beware an Eclipse upgrade might return you to the unedited file.by arungupta - 2008-06-26 18:41
I started Eclipse 3.4 and even though Java SE 6 1.6.0_05 is my default VM, Eclipse still picked up 1.5 only :(by henkomannen - 2008-05-07 01:50
Hi Arun, have you tried to start up Eclipse (I myself am using Eclipse 3.2) with this configuration? It seems you get a JVM Terminated error in your face at startup if you run with anything higher than J2SE 1.5. Anyone else running Java SE 6 on Mac OS X and Eclipse? /Henrikby sindharta - 2008-07-26 16:51
A note: changing the default java to Java SE 6-64 bit will break all your current Java applications which require Java 32 bit.by arungupta - 2008-07-09 05:50
Jon, thanks for the clarification. Do I have to explicitly configure Java SE 6 in Eclipse even though it's the default VM ?by jonzo - 2008-07-09 05:05
Hi Arun, You won't be able to run Eclipse with the the current Apple Java SE 6, as it's 64-bit. Eclipse relies on SWT which is only 32-bit at present due to it's reliance of Carbon. You can still use it from within Eclipse to develop/compile apps as long as they're not using SWT also. Jon.