<?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>weimo.de &#187; Software</title>
	<atom:link href="http://weimo.de/node/tag/software/feed" rel="self" type="application/rss+xml" />
	<link>http://weimo.de</link>
	<description>no worries, mate</description>
	<lastBuildDate>Fri, 16 Jul 2010 22:38:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to compile Apache Mahout on OS X</title>
		<link>http://weimo.de/node/840</link>
		<comments>http://weimo.de/node/840#comments</comments>
		<pubDate>Sun, 03 Jan 2010 02:34:20 +0000</pubDate>
		<dc:creator>Markus Weimer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Mahout]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://weimo.de/?p=840</guid>
		<description><![CDATA[Compiling Apache Mahout should be straight forward on OS X, as the system comes with all the requirements needed. Turns out that is only partially true, as I hit two issues along the way: Wrong Java Version Problem: I got the error 'javac: invalid target release: 1.6' even though I set Java 6 to be [...]]]></description>
			<content:encoded><![CDATA[<p>Compiling <a href="http://lucene.apache.org/mahout/">Apache Mahout</a> should be straight forward on OS X, as the system comes with all the requirements needed. Turns out that is only partially true, as I hit two issues along the way:</p>

<h3>Wrong Java Version</h3>

<p><strong>Problem:</strong> I got the error <tt>'javac: invalid target release: 1.6'</tt> even though I set Java 6 to be the default in the Java Preferences. Even on the command line, <tt>'java -version'</tt> showed 1.6 as the version number. However, this did not carry over to Maven, as <tt>'mvn -v'</tt> confirmed.</p>

<p><strong>Solution:</strong> Explicitly set the <tt>'JAVA_HOME'</tt> environment variable. In my case, I set it via <tt>'export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/'</tt></p>

<h3>Out of Memory when compiling</h3>

<p><strong>Problem:</strong> I got an <tt>'java.lang.OutOfMemoryError: Java heap space'</tt> when compiling the current svn checkout of Mahout (not the release)</p>

<p><strong>Solution: </strong>Set the environment variable <tt>'MAVEN_OPTS'</tt> to allow for more memory via <tt>'export MAVEN_OPTS=-Xmx1024m'</tt></p>

<p>Hope this helps when setting up your <a href="http://lucene.apache.org/mahout/">Apache Mahout</a> development.</p>
]]></content:encoded>
			<wfw:commentRss>http://weimo.de/node/840/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
