<?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>FettesPS &#187; jdk</title>
	<atom:link href="http://www.fettesps.com/tag/jdk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fettesps.com</link>
	<description>Fettes Programming Solutions</description>
	<lastBuildDate>Sun, 22 Jan 2012 18:21:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Eclipse &#8211; Repairing the Default Java Builder</title>
		<link>http://www.fettesps.com/eclipse-repairing-the-default-java-builder/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=eclipse-repairing-the-default-java-builder</link>
		<comments>http://www.fettesps.com/eclipse-repairing-the-default-java-builder/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 01:07:21 +0000</pubDate>
		<dc:creator>FettesPS</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[applet]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[jdk]]></category>

		<guid isPermaLink="false">http://www.fettesps.com/?p=973</guid>
		<description><![CDATA[For a while now I&#8217;ve been using my own custom batch file to build my project, in addition to compiling the class files it also packages it into a jar, signs it, and uploads it to my development server (as it&#8217;s an applet for a site I&#8217;m working on). However, since there&#8217;s two computers I [...]]]></description>
			<content:encoded><![CDATA[<p>For a while now I&#8217;ve been using my own custom batch file to build my project, in addition to compiling the class files it also packages it into a jar, signs it, and uploads it to my development server (as it&#8217;s an applet for a site I&#8217;m working on).  However, since there&#8217;s two computers I develop on I had to create two copies of this script that were customized to each of the PCs, as one was running Windows 7 and the other Windows XP.  During one of the SVN commits or updates the default builder was completely nuked, it still showed up but gave errors when I tried to use it.  I tried to recreate it inside of Eclipse but had no luck, so for a while I just worked around it, however it was frustrating when I simply wanted to launch the applet within Eclipse for a quick test.</p>
<p>Eventually I created a new project for something else and found the builder in it worked as expected, so I realized it was project specific.  So I compared the .project files and was able to correct the corrupted one using the new one as a reference.  Here is an example of how a .project file should look with just the default Java builder:</p>
<pre class="brush: plain; title: ; notranslate">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;projectDescription&gt;
	&lt;name&gt;HelloWorld&lt;/name&gt;
	&lt;comment&gt;&lt;/comment&gt;
	&lt;projects&gt;
	&lt;/projects&gt;
	&lt;buildSpec&gt;
		&lt;buildCommand&gt;
			&lt;name&gt;org.eclipse.jdt.core.javabuilder&lt;/name&gt;
			&lt;arguments&gt;
			&lt;/arguments&gt;
		&lt;/buildCommand&gt;
	&lt;/buildSpec&gt;
	&lt;natures&gt;
		&lt;nature&gt;org.eclipse.jdt.core.javanature&lt;/nature&gt;
	&lt;/natures&gt;
&lt;/projectDescription&gt;
</pre>
<p>In the above example I have removed my custom builders to focus on the built in one, they would each be listed as extra <strong>buildCommand</strong> entries in the parent <strong>buildSpec</strong> node.  In my corrupted copy I had several argument and trigger values that were unnecessary.  Just for comparison, here is the <strong>buildCommand</strong> for my custom Windows 7 builder:</p>
<pre class="brush: plain; title: ; notranslate">
&lt;buildCommand&gt;
	&lt;name&gt;org.eclipse.ui.externaltools.ExternalToolBuilder&lt;/name&gt;
	&lt;triggers&gt;full,incremental,&lt;/triggers&gt;
	&lt;arguments&gt;
		&lt;dictionary&gt;
			&lt;key&gt;LaunchConfigHandle&lt;/key&gt;
			&lt;value&gt;&amp;lt;project&amp;gt;/.externalToolBuilders/Win7_Builder.launch&lt;/value&gt;
		&lt;/dictionary&gt;
	&lt;/arguments&gt;
&lt;/buildCommand&gt;
</pre>
<p>Hope this helps someone else out there!  And stay tuned, as I&#8217;ll be releasing my custom build script very soon for those who may be interested <img src='http://www.fettesps.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.fettesps.com/eclipse-repairing-the-default-java-builder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing Eclipse&#8217;s Java Dependancy Errors</title>
		<link>http://www.fettesps.com/fixing-eclipses-java-dependancy-errors/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fixing-eclipses-java-dependancy-errors</link>
		<comments>http://www.fettesps.com/fixing-eclipses-java-dependancy-errors/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 12:48:45 +0000</pubDate>
		<dc:creator>FettesPS</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[jdk]]></category>
		<category><![CDATA[jre]]></category>

		<guid isPermaLink="false">http://www.fettesps.com/?p=625</guid>
		<description><![CDATA[While setting up Eclipse on my development station in order to compare it to NetBeans I encountered the following error: I have Java installed, and it is working properly. It was a big pain to get working properly the first time with NetBeans so I was worried that if I tweaked it to work with [...]]]></description>
			<content:encoded><![CDATA[<p>While setting up Eclipse on my development station in order to compare it to NetBeans I encountered the following error:</p>
<pre class="brush: plain; title: ; notranslate">A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations:
c:\Program Files\Eclipse\jre\bin\javaw.exe 'javaw.exe' in your current path</pre>
<p>I have Java installed, and it is working properly.  It was a big pain to get working properly the first time with NetBeans so I was worried that if I tweaked it to work with Eclipse I may end up with it not working in either.  I took a peek into many of the config files for Eclipse and didn&#8217;t see an option to set the path for javaw.exe, so I made use of my Google-Fu skills and found the following solution:</p>
<ul>
<li>Right Click Eclipse.exe and select Create Shortcut</li>
<li>Right Click the new shortcut and select Properties</li>
<li>At the end of the target path, add the parameter <i>-vm</i> and then the path to your javaw.exe<br />ie: &#8220;C:\Program Files\eclipse\eclipse.exe&#8221; -vm C:\Java\jdk1.6.0_13\bin</li>
<li>Hit Ok, then run Eclipse from your new shortcut</li>
</ul>
<p>Problem solved!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fettesps.com/fixing-eclipses-java-dependancy-errors/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

