<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Gridshore &#187; java 6</title>
	<atom:link href="http://www.gridshore.nl/tag/java-6/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gridshore.nl</link>
	<description>A weblog about software engineering, Architecture, Technology an other things we like.</description>
	<lastBuildDate>Tue, 13 Dec 2011 15:36:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Java 6 for Mac OSX leopard</title>
		<link>http://www.gridshore.nl/2008/05/01/java-6-for-mac-osx-leopard/</link>
		<comments>http://www.gridshore.nl/2008/05/01/java-6-for-mac-osx-leopard/#comments</comments>
		<pubDate>Thu, 01 May 2008 09:28:56 +0000</pubDate>
		<dc:creator>jettro</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[java 6]]></category>

		<guid isPermaLink="false">http://www.gridshore.nl/?p=123</guid>
		<description><![CDATA[<p>A month a so a go I wrote this item about java 6 on the mac. It was a beta release an I had some issues with it, but it was workable. Now the real deal is ready to be installed. You can download it form the following url. http://www.apple.com/downloads/macosx/apple/application_updates/javaformacosx105update1.html </p> <p> Running the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.gridshore.nl/wp-content/uploads/logoduke3dprogressionsmall.jpg" alt="logoDuke3DprogressionSmall.jpg" border="0" width="300" height="95" align="left"/>A month a so a go I wrote this item about <a href="http://www.gridshore.nl/2008/03/29/java-on-apples-mac-osx/">java 6 on the mac</a>. It was a beta release an I had some issues with it, but it was workable. Now the real deal is ready to be installed. You can download it form the following url. <br />
<a href="http://www.apple.com/downloads/macosx/apple/application_updates/javaformacosx105update1.html">http://www.apple.com/downloads/macosx/apple/application_updates/javaformacosx105update1.html</a>
</p>
<p>
Running the update gives you two extra options in the java preferences pane. Now you can choose for java 6 (64 bit) but you can also choose for java 5 (64 bit).
</p>
<p>I changed my settings to java 6 in the preference pane and now a java -version results in this:
</p>
<pre>
	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)
</pre>
<p>
You still have to do the trick with the softlink, beware of the order of arguments. In my previous article I made an error. So the correct thing to do would be:
</p>
<pre>
sudo rm CurrentJDK
sudo ln -s 1.6 CurrentJDK
</pre>
<p>
Now you are al set to start using java 6 on the mac. Have fun.</p>
<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><iframe src='http://widgets.dzone.com/links/widgets/zoneit.html?url=http%3A%2F%2Fwww.gridshore.nl%2F2008%2F05%2F01%2Fjava-6-for-mac-osx-leopard%2F&amp;title=Java%206%20for%20Mac%20OSX%20leopard&amp;t=2' height='25' width='155' frameborder='0' scrolling='no'></iframe></div></div><div style='clear:both'></div></div><!-- Social Buttons Generated by Digg Digg plugin v4.5.3.4, 
    Author : Yong Mook Kim
    Website : http://www.diggdigg2u.com -->]]></content:encoded>
			<wfw:commentRss>http://www.gridshore.nl/2008/05/01/java-6-for-mac-osx-leopard/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Java on apple&#8217;s Mac OSX</title>
		<link>http://www.gridshore.nl/2008/03/29/java-on-apples-mac-osx/</link>
		<comments>http://www.gridshore.nl/2008/03/29/java-on-apples-mac-osx/#comments</comments>
		<pubDate>Sat, 29 Mar 2008 12:03:15 +0000</pubDate>
		<dc:creator>jettro</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[java 6]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://www.gridshore.nl/2008/03/29/java-on-apples-mac-osx/</guid>
		<description><![CDATA[<p>When I bought my Mac a few months ago, there was some doubt about the support of apple for java. Java 6 was out for a while and Leopard was still shipped with java 5. There were a lot of blogs and a lot of reactions to the lag of support. For me it [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.gridshore.nl/wp-content/uploads/logoduke3dprogressionsmall.jpg" alt="logoDuke3DprogressionSmall.jpg" border="0" width="300" height="95" align="left" />When I bought my Mac a few months ago, there was some doubt about the support of apple for java. Java 6 was out for a while and Leopard was still shipped with java 5. There were a lot of blogs and a lot of reactions to the lag of support. For me it was not a real problem, java 5 was already a big step forward. Yes I was working for big corporations still doing IBM websphere 5.1. But since I have moved to <a href="http://www.jteam.nl">JTeam</a> (well oke, I am starting this week) I need java 6. I knew there was an opensource initiative to port java 6 to the mac. So I started googling for it. But I stumbled upon this site from apple: <a href="http://developer.apple.com/java/">http://developer.apple.com/java/</a>. There now is a developer release for java 6. I also started reading some other java related material for the mac. In this blog item I want to share some of the stuff I found. I do want to stress that most of the knowledge comes directly from the articles I have found on the mentioned website.  I will try to give references if I can still find them.</p>
<p>read on for the tips.</p>
<p><span id="more-94"></span></p>
<h2>Downloading java 6</h2>
<p>Before you can download the software you need to become a member of the apple developer connection group. Go to the following url to download the java 6 developer preview 9.<br />
<a href="http://developer.apple.com/java/download/">http://developer.apple.com/java/download/</a><br />
The downloaded package contains an installer for the java six library.
</p>
<h2>Learn about basic usage of java on Mac OSX Leopard</h2>
<p>
The best starting point for learning about java on Mac OSX Leopard is this link: <a href="http://developer.apple.com/java/javaleopard.html">http://developer.apple.com/java/javaleopard.html</a>. The mac supports multiple version of java out of the box, after installing java 6 there are versions 3,4,5 and 6 available. You can find them in the following location:
</p>
<pre>
/System/Library/Frameworks/JavaVM.framework/Versions
jettro:Versions jettro$ ls -al
total 56
drwxr-xr-x  14 root  wheel  476 Mar 29 12:20 .
drwxr-xr-x  11 root  wheel  374 Mar 18 19:41 ..
lrwxr-xr-x   1 root  wheel    5 Mar 18 19:41 1.3 -> 1.3.1
drwxr-xr-x   3 root  wheel  102 Sep 29  2007 1.3.1
lrwxr-xr-x   1 root  wheel    5 Nov  4 17:54 1.4 -> 1.4.2
lrwxr-xr-x   1 root  wheel    3 Mar 18 19:41 1.4.1 -> 1.4
drwxr-xr-x   8 root  wheel  272 Aug  5  2007 1.4.2
lrwxr-xr-x   1 root  wheel    5 Nov  4 17:54 1.5 -> 1.5.0
drwxr-xr-x   9 root  wheel  306 Mar 29 11:15 1.5.0
lrwxr-xr-x   1 root  wheel    5 Mar 18 19:41 1.6 -> 1.6.0
drwxr-xr-x  10 root  wheel  340 Mar 29 11:14 1.6.0
drwxr-xr-x   8 root  wheel  272 Mar 18 19:41 A
lrwxr-xr-x   1 root  wheel    1 Mar 18 19:41 Current -> A
lrwxr-xr-x   1 root  wheel    3 Mar 29 11:16 CurrentJDK -> 1.6
</pre>
<p>
As you can see, there are a lot of different folders and soft links here to be found. For me the softlink CurrentJDK is pointing to a different location than the default. I changed it to 1.6. If you have absolute no knowledge of unix, then I recommend you learn or you be very careful. I removed the old virtual link and created a new one. You have to be the super user to be able to do this.
</p>
<pre>
sudo rm CurrentJDK
sudo ln -s 1.6 CurrentJDK
</pre>
<p>
By going up one folder you can get a general idea about the usage of java. The most important is the Home soft link. This is the one you can use as a Java home when you need it.
</p>
<pre>
/System/Library/Frameworks/JavaVM.framework
jettro:JavaVM.framework jettro$ ls -al
total 64
drwxr-xr-x  11 root  wheel   374 Mar 18 19:41 .
drwxr-xr-x  84 root  wheel  2856 Nov  4 17:54 ..
lrwxr-xr-x   1 root  wheel    27 Mar 18 19:41 Classes -> Versions/CurrentJDK/Classes
lrwxr-xr-x   1 root  wheel    24 Nov  4 17:54 CodeResources -> Versions/A/CodeResources
lrwxr-xr-x   1 root  wheel    28 Mar 18 19:41 Commands -> Versions/CurrentJDK/Commands
lrwxr-xr-x   1 root  wheel    24 Mar 18 19:41 Headers -> Versions/Current/Headers
lrwxr-xr-x   1 root  wheel    24 Mar 18 19:41 Home -> Versions/CurrentJDK/Home
lrwxr-xr-x   1 root  wheel    23 Mar 18 19:41 JavaVM -> Versions/Current/JavaVM
lrwxr-xr-x   1 root  wheel    29 Mar 18 19:41 Libraries -> Versions/CurrentJDK/Libraries
lrwxr-xr-x   1 root  wheel    26 Mar 18 19:41 Resources -> Versions/Current/Resources
drwxr-xr-x  14 root  wheel   476 Mar 29 12:20 Versions
</pre>
<p>
Now we made IntelliJ make use of java 6, cool stuff or not. To control the default java versions for applications, applets and java webstart apple has provided us a utility application. Go to /Applications/Utilities/Java Preferences. Using the following screen you can adjust the version of java used by applets and programs.
</p>
<p>
 <img src="http://www.gridshore.nl/wp-content/uploads/screendump-mac-java-settings.png" alt="Screendump_mac_java_settings.png" border="0" width="564" height="735" />
</p>
<p>
Now you can check the version of java by opening a command prompt and typing java -version.
</p>
<pre>
jettro:~ jettro$ java -version
java version "1.6.0_04-dp"
Java(TM) SE Runtime Environment (build 1.6.0_04-dp-b06-110)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_04-b12-45-optimized, mixed mode)
</pre>
<p>
So nice java 6 on the mac, bye bye old stuff.</p>
<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><iframe src='http://widgets.dzone.com/links/widgets/zoneit.html?url=http%3A%2F%2Fwww.gridshore.nl%2F2008%2F03%2F29%2Fjava-on-apples-mac-osx%2F&amp;title=Java%20on%20apple%27s%20Mac%20OSX&amp;t=2' height='25' width='155' frameborder='0' scrolling='no'></iframe></div></div><div style='clear:both'></div></div><!-- Social Buttons Generated by Digg Digg plugin v4.5.3.4, 
    Author : Yong Mook Kim
    Website : http://www.diggdigg2u.com -->]]></content:encoded>
			<wfw:commentRss>http://www.gridshore.nl/2008/03/29/java-on-apples-mac-osx/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

