<?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>code zen &#187; Java</title>
	<atom:link href="http://www.arpitonline.com/blog/category/programming/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.arpitonline.com/blog</link>
	<description>"I write pretty software"</description>
	<lastBuildDate>Sun, 25 Jul 2010 22:23:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Migrating to Java 1.6 on a Mac (Warning: Flash CS3/Flex Builder/Eclipse wont work with it)</title>
		<link>http://www.arpitonline.com/blog/2009/09/10/migrating-to-java-1-6-warning-flex-buildereclipse-wont-work-with-it/</link>
		<comments>http://www.arpitonline.com/blog/2009/09/10/migrating-to-java-1-6-warning-flex-buildereclipse-wont-work-with-it/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 05:16:24 +0000</pubDate>
		<dc:creator>arpit</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.arpitonline.com/blog/?p=326</guid>
		<description><![CDATA[[Update: Changed the title, added "on a Mac" because everything mentioned here is applicable to that platform alone]
After not looking at it for 4 years, today I started playing with Java again for a new open source project called RedCar, a programmers text editor that is now being ported to SWT and JRuby. Mat is [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 20px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.arpitonline.com%2Fblog%2F2009%2F09%2F10%2Fmigrating-to-java-1-6-warning-flex-buildereclipse-wont-work-with-it%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.arpitonline.com%2Fblog%2F2009%2F09%2F10%2Fmigrating-to-java-1-6-warning-flex-buildereclipse-wont-work-with-it%2F" height="61" width="51" /></a></div><p>[Update: Changed the title, added "on a Mac" because everything mentioned here is applicable to that platform alone]</p>
<p>After not looking at it for 4 years, today I started playing with Java again for a new open source project called <a href="http://redcareditor.com/">RedCar</a>, a programmers text editor that is now being ported to SWT and JRuby. <a href="http://matschaffer.com/">Mat</a> is getting pretty involved in it and he got me curious about the project. However to actually get it to work I had to get the Java 1.6 code to compile on my Mac which was a little tricky. Here are some notes from that.</p>
<p>The JDK 1.6 was part of one of the recent Mac Software updates but what I found out was that the update does not actually change the default JDK/JRE for the system. The first thing I did was to change the symlinks for java and javac as mentioned on <a href="http://blogs.sun.com/cmar/entry/java_1_6_finally_available">this post</a>. That seemed to work and calling java &#8211; version and javac -version seemed to return the correct versions, but running the build file still did not work. After a few other attempts, including trying the <a href="http://note19.com/2008/05/04/how-to-change-the-default-version-of-jdk/">Java Preferences Application</a> without any luck, I finally found <a href="http://memerocket.com/2009/08/06/upgrade-os-x-10-5-8-to-jdk-1-6/">this post</a> that basically talked about the CurrentJDK symlink that apparently my build.xml was using (and was still pointed to JDK 1.5). That seems to have worked. </p>
<p>One last thing. Apparently Eclipse (and Flex Builder which is built on top of Eclipse) doesnt work with Java 1.6 on a Mac. As <a href="http://blog.kischuk.com/2008/05/08/running-eclipse-on-macbooks-with-java-6/">this post suggests</a>, you may have to make a change to the Info.plist for the application to make it run with Java 1.5.</p>
<p>[Update] The Flash CS3 IDE doesnt work with 1.6 as well, so I am reverting back to 1.5 for the time being. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.arpitonline.com/blog/2009/09/10/migrating-to-java-1-6-warning-flex-buildereclipse-wont-work-with-it/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
