<?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>What I Learned Today &#187; gcj</title>
	<atom:link href="http://christiansons.net/mike/blog/tag/gcj/feed/" rel="self" type="application/rss+xml" />
	<link>http://christiansons.net/mike/blog</link>
	<description>Mike Christianson&#039;s journal of Java, Ant, SVN, Jetty, cygwin and other stuff.</description>
	<lastBuildDate>Wed, 04 Aug 2010 22:24:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Eclipse on Ubuntu without GCJ</title>
		<link>http://christiansons.net/mike/blog/2009/02/eclipse-on-ubuntu-without-gcj/</link>
		<comments>http://christiansons.net/mike/blog/2009/02/eclipse-on-ubuntu-without-gcj/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 08:02:21 +0000</pubDate>
		<dc:creator>Mike Christianson</dc:creator>
				<category><![CDATA[eclipse]]></category>
		<category><![CDATA[gcj]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.christiansons.net/?p=199</guid>
		<description><![CDATA[Software packages from Ubuntu repositories can have some interesting and problematic dependencies. One such example is Ubuntu&#8217;s dependency on GCJ for Ant. Ubuntu&#8217;s Eclipse package also depends on GCJ. If you wish to avoid this dependency, simply download the appropriate binary distribution from the Eclipse download site, extract to the location of your choice, and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.eclipse.org/downloads/"><img src="/mike/blog/wp-content/uploads/2009/02/eclipse-150x97.png" alt="eclipse" title="eclipse" width="150" height="97" class="alignright size-thumbnail wp-image-212" /></a>Software packages from Ubuntu repositories can have some interesting and problematic dependencies.  One such example is <a href="http://christiansons.net/2009/01/ant-on-ubuntu-without-gcj/">Ubuntu&#8217;s dependency on GCJ for Ant</a>.</p>
<p>Ubuntu&#8217;s Eclipse package also depends on GCJ.  If you wish to avoid this dependency, simply download the appropriate binary distribution from the <a href="http://www.eclipse.org/downloads/">Eclipse download site</a>, extract to the location of your choice, and run Eclipse.</p>
<p style="border: thin dashed;">Before using Eclipse, be sure you have Sun&#8217;s JRE <a href="http://christiansons.net/2008/11/java-6-update-10-is-available/">installed and configured as the default JRE</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://christiansons.net/mike/blog/2009/02/eclipse-on-ubuntu-without-gcj/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ant on Ubuntu without GCJ</title>
		<link>http://christiansons.net/mike/blog/2009/01/ant-on-ubuntu-without-gcj/</link>
		<comments>http://christiansons.net/mike/blog/2009/01/ant-on-ubuntu-without-gcj/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 22:23:33 +0000</pubDate>
		<dc:creator>Mike Christianson</dc:creator>
				<category><![CDATA[ant]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[gcj]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.christiansons.net/?p=76</guid>
		<description><![CDATA[You may be surprised to learn Ant requires GCJ when installed through Synaptic or apt on Ubuntu.  GCJ is GNU&#8217;s Java compiler.  When you&#8217;re using Sun&#8217;s JDK and compiler, GCJ can get in the way &#8212; at worst it creates conflicts; at best it causes confusion. Here&#8217;s how I installed Ant on Ubuntu without GCJ. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://christiansons.net/mike/blog/wp-content/uploads/2009/01/ant_logo_large.gif"><img class="alignleft size-medium wp-image-88" title="Ant logo" src="/mike/blog/wp-content/uploads/2009/01/ant_logo_large.gif" alt="" width="190" height="120" /></a>You may be surprised to learn <a title="Ant website" href="http://ant.apache.org/">Ant</a> requires GCJ when installed through Synaptic or <tt>apt</tt> on Ubuntu.  GCJ is <a title="GCJ homepage" href="http://gcc.gnu.org/java/">GNU&#8217;s Java compiler</a>.  When you&#8217;re using Sun&#8217;s JDK and compiler, GCJ can get in the way &#8212; at worst it creates conflicts; at best it causes confusion.</p>
<p>Here&#8217;s how I installed Ant on Ubuntu without GCJ.<span id="more-76"></span>  <em>Be sure to check out (easier) alternatives suggested in the <a href="#comments">comments, below</a></em>.</p>
<ol>
<li>Download the current <tt>.tar.bz2</tt> distribution of Ant from <a title="Ant mirror" href="http://www.ibiblio.org/pub/mirrors/apache/ant/binaries/">http://www.ibiblio.org/pub/mirrors/apache/ant/binaries/</a>.</li>
<li>Unpack archive using <tt>tar</tt>.</li>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xjvf</span> apache-ant-<span style="color: #000000; font-weight: bold;">*</span>-bin.tar.bz2</pre></div></div>

<li>Move the unpacked directory to <tt>/usr/local/ant</tt>.</li>
<li>Change that directory&#8217;s owner to <tt>root</tt>.</li>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> root:root <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>ant</pre></div></div>

<li>Add the following lines to <tt>/etc/bash.bashrc</tt>.</li>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">ANT_HOME</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>ant
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #800000;">${PATH}</span>:<span style="color: #800000;">${ANT_HOME}</span><span style="color: #000000; font-weight: bold;">/</span>bin</pre></div></div>

</ol>
<p>From a new shell, run <tt>ant</tt>.  You should see the following:</p>
<pre>Buildfile: build.xml does not exist!
Build failed</pre>
<p>Yes, it&#8217;s a failure message.  But it means Ant is working as expected.  <img src='http://christiansons.net/mike/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://christiansons.net/mike/blog/2009/01/ant-on-ubuntu-without-gcj/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
