<?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>Alastair&#039;s Axioms &#187; OS X</title>
	<atom:link href="http://blog.alastairdawson.com/tag/os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.alastairdawson.com</link>
	<description>Let us toast your non-idiocy</description>
	<lastBuildDate>Thu, 11 Aug 2011 23:13:48 +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>Getting Netbeans 6.9 to work on OS X 10.5.8</title>
		<link>http://blog.alastairdawson.com/2010/07/15/getting-netbeans-6-9-to-work-on-os-x-10-5-8/</link>
		<comments>http://blog.alastairdawson.com/2010/07/15/getting-netbeans-6-9-to-work-on-os-x-10-5-8/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 20:34:02 +0000</pubDate>
		<dc:creator>Alastair</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[NetBeans]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://blog.alastairdawson.com/?p=193</guid>
		<description><![CDATA[
After downloading and installing Netbeans 6.9 I launched the app. It bounced a couple of times in my dock as dreams of exciting new features danced in my head. Then&#8230; nothing, well not quite nothing, I received a message informing me that:
&#8220;Java 6 Standard Edition or newer required. Cannot run on older versions of Java [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-195" title="netbeans69osxerror" src="http://blog.alastairdawson.com/wp-content/uploads/2010/07/netbeans69osxerror.png" alt="netbeans69osxerror" width="616" height="229" /></p>
<p>After downloading and installing Netbeans 6.9 I launched the app. It bounced a couple of times in my dock as dreams of exciting new features danced in my head. Then&#8230; nothing, well not quite nothing, I received a message informing me that:</p>
<p>&#8220;Java 6 Standard Edition or newer required. Cannot run on older versions of Java than Java 6 Standard Edition. Please install Java 6 Standard Edition or newer or use &#8211;jdkhome switch to point to its installation directory.&#8221;</p>
<p>How to solve this issue:</p>
<p><strong>Step 1. Figure out which version of Java you have </strong></p>
<p>Open Terminal.app and enter:</p>
<pre>java -version</pre>
<p>You&#8217;ll most likely see the following:</p>
<pre>java version "1.5.0_24"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_24-b02-357-9M3165)
Java HotSpot(TM) Client VM (build 1.5.0_24-149, mixed mode, sharing)</pre>
<p>Obviously this is the wrong Java version since Netbeans is asking for Java 6 (aka Java 1.6).</p>
<p><strong>Step 2. Get Java 1.6</strong></p>
<p>However if you head over to Oracle you&#8217;ll find downloads for Linux and Windows but none for Mac. Why has the mighty Oracle deemed you unworthy of the latest Java? </p>
<p>Because you already have it! Your Mac is just not setup to use it. </p>
<p>Go Back to the Terminal and enter the following:</p>
<pre>cd /System/Library/Frameworks/JavaVM.framework/Versions; ls;</pre>
<p>You&#8217;ll get a list of all the Java versions available.</p>
<pre>1.3		1.4		1.4.2		1.5.0		1.6.0		Current
1.3.1		1.4.1		1.5		1.6		A		CurrentJDK</pre>
<p><strong>Step 3. Configure Netbeans</strong></p>
<p>The hint to get Netbeans working is in the error message; &#8220;or use &#8211;jdkhome switch to point to its installation directory&#8221;. </p>
<p>In the Finder browse to the NetBeans 6.9.app (in Applications/NetBeans/). Apps on OS X are really just packages so you can explore and edit their contents. Right-click (or control-click) on the app and select &#8216;Show Package Contents&#8217; this will open a new Finder window. Then browse to Contents/Resources/NetBeans/etc and open &#8216;netbeans.conf&#8217; in a text editor. Uncomment (remove the pound sign from) the line that starts with &#8216;#netbeans_jdkhome&#8217; and set it to point to your Java 1.6 home as below:</p>
<pre>netbeans_jdkhome="/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home"</pre>
<p>Save the file.</p>
<p>That&#8217;s it!</p>
<p>Try launching the NetBeans 6.9 app again, it should now work.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.alastairdawson.com/2010/07/15/getting-netbeans-6-9-to-work-on-os-x-10-5-8/feed/</wfw:commentRss>
		<slash:comments>65</slash:comments>
		</item>
	</channel>
</rss>

