The World’s Leading Microsoft .NET Magazine
   
 
The .NET Addict's Blog

My Top Tags

                                                           

My RSS Feeds








I heart FeedBurner

Latest Diggs - Programming

Computers Blogs - Blog Top Sites

Site Hits

Total: 4,868,426
since: 19 Jan 2005

Upgrading your Leopard install to Java SE 6 64-Bit

posted Mon 12 Jan 09

If you're using Mac OS X 10.5 (Leopard), then you're probably running some variation of Java version 1.5. While that's all well and good, it turns out that the JAX-WS goodies that I was looking for in my previous post were all standard part of Java SE 6. So I went looking for ways to upgrade my installation of Java and was surprised to find how unbelievably difficult it was to find what I wanted!

First I went to the Apple Developer Connection. I figured that was a likely place to look for information. I found some documentation on some mysterious update that didn't download properly, but I couldn't find anything concrete. When I went to a download site for the JDK, it told me to use Apple's System Update to grab the latest version of Java. I did that and, of course, found out that my version 1.5 was considered up to date since the System Updater couldn't find anything new for me to download.

Then I found some website that had created a Mac-usable port of BSD's version of 1.6. The problem here is that nobody ever modifies or takes down old content on the web. If I hadn't read the date on that web page, I would've made a huge mistake and installed some shaky port of a beta version of 1.6 and I needed the REAL version 1.6.

Finally I went to another area within Apple's developer site and was able to find "Update 1" for Java on Leopard. This page didn't link to any other updates so I downloaded it. Out of curiosity, I went looking for a newer update since this one looked a little old. Remember, Apple's web page for "Update 1" didn't mention the existence of a new update. I went to "teh google" and found that there was indeed an update 2.

You can find Update 2 here .

I downloaded that update and installed it and figured that everything would be fine..but I was wrong :) After the install, running "java -version" still gave me the old 1.5. Some more google searching turned up this:

In Finder, navigate to your Applications/Utilities/Java folder and launch "Java Preferences". In here you can drag the "Java 1.6 SE" installation to the top. After you close that window and then run "java -version" again, you'll be on 1.6 SE 64-bit.

Not being a Java guy, I don't know if this is just common knowledge that everyone but the .NET guys in the room know, or if this really is some obscure information. Either way, I hope it saves someone some trouble because it took me way too long to figure this one out.

tags:            

links: digg this    del.icio.us    technorati    reddit

AddThis Social Bookmark Button




1. dave left...
Mon 19 Jan 09 4:38 am

Funnily enough, I played this game only yesterday. I also discovered Updates 1 and 2, but found I didn't need to download them. Looking at the Java Preferences app, 1.6 was installed already; all I needed to do was drag it to the top.

So now java -version shows 1.6.0_07, but the About window for Netbeans shows 1.5.0_16. I've no idea where to go from here.


2. I got the JAXWS Java 6 on 32-bit left...
Thu 22 Jan 09 1:21 am

The need for Java 6 to get access to the inbuilt JAXWS also drove me to hunting down the install. To my surprise I see Apple isn't supporting Java 6 for powerpc (I could be wrong). Guess it forces me to upgrade my hardware (have been holding off for a while).


3. Tim Mowlem left...
Fri 30 Jan 09 11:13 am

Apple's Java update naming on MacOSX is to use the American vernacular a train wreck! They normally refer to "Update N for MacOSX v10.x" which makes no mention of which java version is involved, although it useful for users to see what update in a sequence it is for what MacOSX version. However for 1.5 they didn't stick to a single naming convention for the whole series which made things really confusing.

All Java versions on MacOSX are found in /System/Library/Frameworks/JavaVM.framework - inside which you will find multiple versions of Java. The actual versions are in the Versions folder and there may be multiple versions of any given java major version. For each major version there are one or more aliases which point to a minor version (normally the latest) of that major version.

Presumably in the Java Preferences application the Java versions that you drag to order are pointers to these aliases.

The CurrentJDK alias points to 1.5.0 on my Leopard installation so presumably that points to the default JDK for the MacOSX version, the Java version that is set as default. Update 2 does not change the default java version (though I think that may have happened in the past).

The Current alias points to the A directory. The A directory I think is so named because it follows standard version naming conventions for Cocoa frameworks where multiple versions can be deployed in a framework with versions in directories named A, B, etc.

I don't know why the files in A are real files as they could also presumably be aliases to the currently set version.


Tag Related Posts

Would you like to touch my mono?

Mon 23 Nov 09 2:59 P GMT-05

Building RESTful Java Web Services with JAX-RS

Mon 23 Feb 09 8:42 P GMT-05
tags:                    

Upgrading your Leopard install to Java SE 6 64-Bit

Mon 12 Jan 09 1:38 P GMT-05
tags:            

Know thine Enemy: RESTful Web Services in ... Java!

Sun 11 Jan 09 2:08 P GMT-05
tags:                    

Apple drops the iPhone NDA for Released Software

Wed 01 Oct 08 3:54 P GMT-05
tags:          

Cappuccino, Objective-J, and You

Wed 10 Sep 08 6:14 P GMT-05

So I'm in the LA Times ;)

Wed 27 Aug 08 2:51 P GMT-05
tags:                  

MobileMe vs. Live Mesh Throwdown - Round 1

Wed 16 Jul 08 10:33 A GMT-05

Building Model Classes in C# and Cocoa

Sun 15 Jun 08 3:13 P GMT-05
tags:            

MobileMe vs. Live Mesh - Round 1

Wed 11 Jun 08 12:20 A GMT-05

My Macbook Air is masculine, dammit!

Mon 17 Mar 08 6:59 P GMT-05
tags:          

iPhone Underrated as a Gaming Device?

Fri 14 Mar 08 1:50 P GMT-05
tags:        

My take on the iPhone SDK

Sat 08 Mar 08 1:39 P GMT-05

Jobs says "not likely" to Flash on the iPhone

Thu 06 Mar 08 1:39 A GMT-05
tags:          

My Macbook Air Review

Sun 02 Mar 08 4:20 P GMT-05

iPhone Roadmap March 6th

Fri 29 Feb 08 10:41 P GMT-05
tags:        

Video of the Macbook Air in Action

Wed 20 Feb 08 3:04 P GMT-05

Macbook Airはきれいですよ!

Sun 17 Feb 08 2:38 A GMT-05

Why is O'Reilly Condoning iPhone Hacking?

Mon 11 Feb 08 3:55 P GMT-05

Evaluating my next laptop purchase

Wed 06 Feb 08 8:40 P GMT-05

The iPhone SDK key has been leaked! Oh Noez!!!1

Tue 29 Jan 08 11:36 A GMT-05
tags:        

Why Geeks just don't "get" the Macbook Air

Thu 17 Jan 08 2:30 P GMT-05

Popcorn + TiVo + Macbook Pro + iPhone == Hell Yeah!

Tue 15 Jan 08 3:11 P GMT-05
tags:          

How my ADC membership changed my life

Mon 31 Dec 07 3:57 P GMT-05
tags:      

Leopard Code Sample : Sprinkling in some Bonjour

Tue 27 Nov 07 2:32 P GMT-05
tags:        

Leopard Sample: A Bound NSCollectionView

Mon 29 Oct 07 1:41 A GMT-05

My Leopard Installation Experience

Sun 28 Oct 07 12:57 P GMT-05
tags:    

Leopard is out - let the code samples begin!

Fri 26 Oct 07 10:09 A GMT-05
tags:          

My life is complete : iPhone SDK is CONFIRMED.

Wed 17 Oct 07 6:38 P GMT-05
tags:          

Leopard Shipping October 26th!!

Tue 16 Oct 07 4:59 P GMT-05
tags:        

My iPhone Review

Mon 23 Jul 07 1:09 P GMT-05
tags:        

Microsoft Codename Acropolis - Unwrapped

Wed 20 Jun 07 3:22 P GMT-05
tags:              

Exploring the Delegate Design Pattern

Mon 14 May 07 6:30 P GMT-05

Core Data - Almost too Easy?

Wed 18 Apr 07 2:23 P GMT-05

Exploring the MVC Pattern in WPF

Tue 10 Apr 07 12:51 P GMT-05
tags:                      

An experience with the Leopard beta

Mon 26 Mar 07 7:45 P GMT-05
tags:                

WPF Bindings == WTF Bindings?

Mon 12 Mar 07 6:31 P GMT-05

Objective-C Categories vs C# 3.5 Language Extensions

Mon 26 Feb 07 1:05 P GMT-05
tags:                

Cocoa Programming vs. WPF : NIB vs XAML

Tue 20 Feb 07 2:09 P GMT-05

Cocoa Bindings vs. WPF Binding

Thu 15 Feb 07 5:41 P GMT-05
tags: