<?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>Mike / Michael Fogel &#187; java</title>
	<atom:link href="http://www.fogel.ca/tag/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fogel.ca</link>
	<description>soapbox and search engine spam</description>
	<lastBuildDate>Fri, 24 Jun 2011 05:50:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Getting Eclipse and Java working on Debian</title>
		<link>http://www.fogel.ca/2008/10/02/getting-eclipse-and-java-working-on-debian/</link>
		<comments>http://www.fogel.ca/2008/10/02/getting-eclipse-and-java-working-on-debian/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 19:50:27 +0000</pubDate>
		<dc:creator>Mike Fogel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://blog.fogel.ca/?p=174</guid>
		<description><![CDATA[Here are the steps I took to get Eclipse working with Java on my Debian Lenny more-or-less default install laptop.  I know zero (soon to be non-zero) Java, and I&#8217;ve never used Eclipse before.

sudo apt-get install eclipse
sudo apt-get install sun-java6-doc

You will then need to download a zipped file from sun&#8217;s servers to your /tmp dir, [...]]]></description>
			<content:encoded><![CDATA[<p>Here are the steps I took to get <a href="http://www.eclipse.org/">Eclipse</a> working with <a href="http://www.java.com/">Java</a> on my <a href="http://www.debian.org">Debian</a> Lenny more-or-less default install laptop.  I know <em>zero</em> (soon to be non-zero) Java, and I&#8217;ve never used Eclipse before.</p>
<pre>
sudo apt-get install eclipse
sudo apt-get install sun-java6-doc
</pre>
<p>You will then need to download a zipped file from sun&#8217;s servers to your /tmp dir, and then re-run the configuration scripts for that package.  AFAIK, that package just installs the help files in the appropriate places.  It doesn&#8217;t do the download for you because Sun makes you check a bunch of boxes off about licenses etc. before letting you download.</p>
<p>Increase your productivity about a billion percent for 15 Euro: <a href="http://satokar.com/viplugin/">viPlugin</a>.  It works as expected, so far recommended.  The only thing is I didn&#8217;t receive my license via email till about 4 hours after I bought it.  So get it set up now.  I, for one, do appreciate the reasonable pricing for viPlugin as apposed to some other <a href="http://www.viemu.com/">vi IDE plugins</a>.  Reasonable pricing makes the difference between me searching for a crack or just paying for the license&#8230; but that&#8217;s worthy of a whole rant (er, post) of it&#8217;s own.</p>
<p>And I think that&#8217;s it.  I&#8217;m now on my way to becoming yet another Java monk- er, programmer.</p>
<p><strong>Update:</strong></p>
<p>Hum, why is it never that easy?  So the GNU version of the Java complier <a href="http://ubuntuforums.org/showthread.php?t=874500">doesn&#8217;t like you using the Scanner class</a>. I have no idea why and right now, with this project 22 hours overdue, I don&#8217;t really care (so why am I writing this up now?).  Anyway:</p>
<pre>
sudo apt-get install sun-java6-jdk
sudo update-java-alternatives -s java-6-sun
sudo update-alternatives --config java
</pre>
<p>And you want to select /usr/lib/jvm/java-6-sun/jre/bin/java</p>
<pre>sudo update-alternatives --config javac</pre>
<p>And you want to select /usr/lib/jvm/java-6-sun/bin/javac</p>
<p>In Eclipse,  &#8220;Windows&#8221; &gt; &#8220;Preferences&#8221; &gt; &#8220;Java&#8221; &gt; &#8220;Installed JREs&#8221;.  You want to &#8216;Add&#8217; the JRE /usr/lib/jvm/java-6-sun-1.6.0.07  Then you want to make that the default by checking the box and clicking OK.</p>
<p>And now, Eclipse will find that Scanner class for you.</p>
<p><strong>Update #2:</strong></p>
<p>You probably want to use Sun&#8217;s javadoc:</p>
<pre>sudo update-alternatives --config javadoc</pre>
<p> and select /usr/lib/jvm/java-6-sun/bin/javadoc</p>
<p><strong>Update #3:</strong></p>
<p>If you want to use the JUnit4 package, you need to add it to the build path of your project.</p>
<pre>sudo apt-get install junit4</pre>
<p>In Eclipse, &#8220;Windows&#8221; &gt; &#8220;Preferences&#8221; &gt; &#8220;Java&#8221; &gt; &#8220;Installed JREs&#8221;.  Select &#8220;Edit&#8221; on the JRE you&#8217;re using &#8211; for me, this is java-6-sun-1.6.0.07.  Then &#8220;Add External JARs&#8230;&#8221; and add /usr/lib/eclipse/plugins/org.junit4_4.1.0.1/junit-4.1.jar.  I don&#8217;t know why this doesn&#8217;t all just happen automagically&#8230; I see <a href="http://groups.google.com/group/cmu-15-211-discuss/browse_thread/thread/257d990673ec6707/fe4998c96dccc30f">some hints</a> around that there&#8217;s a licensing issue.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fogel.ca/2008/10/02/getting-eclipse-and-java-working-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

