<?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>Kyle Smith &#187; macosx</title>
	<atom:link href="http://blog.infinitechaos.com/tag/macosx/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.infinitechaos.com</link>
	<description>No magic here</description>
	<lastBuildDate>Wed, 30 Mar 2011 14:35:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Getting the Arduino IDE running on Mac OS X with 64-bit Java</title>
		<link>http://blog.infinitechaos.com/2009/01/29/getting-arduino-running-on-mac-os-x-with-64-bit-java/</link>
		<comments>http://blog.infinitechaos.com/2009/01/29/getting-arduino-running-on-mac-os-x-with-64-bit-java/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 03:02:34 +0000</pubDate>
		<dc:creator>kyle</dc:creator>
				<category><![CDATA[tip]]></category>
		<category><![CDATA[64-bit]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[java6]]></category>
		<category><![CDATA[macosx]]></category>
		<category><![CDATA[rxtx]]></category>

		<guid isPermaLink="false">http://blog.infinitechaos.com/?p=286</guid>
		<description><![CDATA[The other day I ordered an Arduino Duemilanove from Maker Shed and in anticipation of its arrival I went and downloaded the Arduino software to play around with.  I ran it and immediately got this error, which has been reported a number of times in the forums and mailing lists: java.lang.UnsatisfiedLinkError: /Users/kylesm/Downloads/arduino-0012/Arduino 12.app/Contents/Resources/Java/librxtxSerial.jnilib:  thrown while [...]]]></description>
			<content:encoded><![CDATA[<p>The other day I ordered an <a title="Arduino" href="http://www.arduino.cc">Arduino Duemilanove</a> from <a title="Maker Shed" href="http://www.makershed.com">Maker Shed</a> and in anticipation of its arrival I went and downloaded the Arduino software to play around with.  I ran it and immediately got this error, which has been reported a number of times in the forums and mailing lists:</p>
<blockquote><p>java.lang.UnsatisfiedLinkError: /Users/kylesm/Downloads/arduino-0012/Arduino 12.app/Contents/Resources/Java/librxtxSerial.jnilib:  thrown while loading gnu.io.RXTXCommDriver</p></blockquote>
<p>I tried rebuilding <a title="RXTX" href="http://rxtx.qbang.org/wiki/index.php/Main_Page">rxtx</a> with 64-bit support as documented <a title="RXTX mailing list post with a fix" href="http://mailman.qbang.org/pipermail/rxtx/2008-May/2510291.html">here</a> and <a title="RXTX on Mac OS X installation instructions" href="http://rxtx.qbang.org/wiki/index.php/Installation_on_MacOS_X">here</a> and then overwrote the copy that shipped with Arduino but continued to get the same error.  I then got the idea of copying the library and JAR from <a title="Processing" href="http://www.processing.org">Processing</a> (upon which it&#8217;s based) since that works just fine.  Same error.</p>
<p>The final trick was to edit the Info.plist for the app and change the value for the JVMVersion property to 1.5* (which is what Processing does) and it worked perfectly because the 32-bit version of the JDK 1.5 is my second choice in the Java Preferences app:</p>
<p><img class="alignnone size-full wp-image-287" title="Mac OS X Java preferences" src="http://blog.infinitechaos.com/wp-content/uploads/2009/01/javasettings.png" alt="Mac OS X Java preferences" width="264" height="163" /></p>
<p>So in the end I couldn&#8217;t get it working with a 64-bit JVM and didn&#8217;t need to rebuild rxtx, but thankfully Apple includes just about every version it&#8217;s ever produced so it wasn&#8217;t a big deal.</p>
<p>The problem is primarily due to the fact that the Arduino IDE uses a native library that was built without 64-bit support and I&#8217;ve got Apple&#8217;s 64-bit JVM set as my default for work.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.infinitechaos.com/2009/01/29/getting-arduino-running-on-mac-os-x-with-64-bit-java/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

