<?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; Java</title>
	<atom:link href="http://www.fettesps.com/category/programming/java/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>Load Langs.xml Failed!</title>
		<link>http://www.fettesps.com/load-langs-xml-failed/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=load-langs-xml-failed</link>
		<comments>http://www.fettesps.com/load-langs-xml-failed/#comments</comments>
		<pubDate>Thu, 23 Sep 2010 00:53:42 +0000</pubDate>
		<dc:creator>FettesPS</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[ide]]></category>

		<guid isPermaLink="false">http://www.fettesps.com/?p=969</guid>
		<description><![CDATA[I&#8217;ve been using Notepad++ for a couple of years and have mostly good things to say about it. However my one gripe is that on any system I&#8217;ve installed it on the program has been a ticking time-bomb and will inevitably start spitting out errors every time I open it. Usually I simply ignore the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using Notepad++ for a couple of years and have mostly good things to say about it.  However my one gripe is that on any system I&#8217;ve installed it on the program has been a ticking time-bomb and will inevitably start spitting out errors every time I open it.  Usually I simply ignore the error and go on my merry way, as I&#8217;m in the middle of fixing something else and can&#8217;t be bothered to fix my editor as well.  Today was one of those days where I finally took the initiative to fix it.</p>
<p><a href="http://www.fettesps.com/wp-content/uploads/2010/09/configurator_langsxml.png"><img src="http://www.fettesps.com/wp-content/uploads/2010/09/configurator_langsxml.png" alt="" title="configurator_langsxml" width="181" height="154" class="aligncenter size-full wp-image-988" /></a></p>
<p>The error gave a good indication as to what the issue was, so I simply opened up the installation folder (in my case it was C:\Program Files (x86)\Notepad++\) and inspected the langs.xml file.  At first everything looked normal, but once I reached the end of the file I noticed it&#8217;s abrupt ending; something had caused every character after a certain point to just vanish. None of the XML tags were closed properly as a result.  Unsure of what would happen if I just removed this file, I renamed it to langs.xml.bak and reloaded Notepad++.  The program loaded without any errors and silently recreated the langs.xml file from scratch. Problem solved!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fettesps.com/load-langs-xml-failed/feed/</wfw:commentRss>
		<slash:comments>3</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>
		<item>
		<title>Disable SVN in NetBeans</title>
		<link>http://www.fettesps.com/disable-svn-in-netbeans/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=disable-svn-in-netbeans</link>
		<comments>http://www.fettesps.com/disable-svn-in-netbeans/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 15:23:10 +0000</pubDate>
		<dc:creator>FettesPS</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[cvs]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.fettesps.com/?p=607</guid>
		<description><![CDATA[For the last couple of weeks I&#8217;ve been doing some Java development using NetBeans and every couple of days my checked out copy of the project dies on me. I was getting very frustrated because each time it happened I had to check out an older revision to a new directory, then export the corrupted [...]]]></description>
			<content:encoded><![CDATA[<p>For the last couple of weeks I&#8217;ve been doing some Java development using NetBeans and every couple of days my checked out copy of the project dies on me.  I was getting very frustrated because each time it happened I had to check out an older revision to a new directory, then export the corrupted one into and from there I could check it in.  This was not only time consuming but a very messy solution which had the potential mess up my repository.  Yet after going through all this work I would again be presented with the following error:</p>
<blockquote><p>&#8220;This client is too old to work with the working copy &#8220;C:\path\to\repository.&#8221; You need to get a newer Subversion client, or downgrade this working copy.  See http://subversion.tigris.org/faq.html#working-copy-format-change for details.&#8221;</p></blockquote>
<p></p>
<p>This error was somewhat misleading, as the site it provided didn&#8217;t offer me any insight as to why it was happening.  I had the newest version of TortoiseSVN and the error wasn&#8217;t happening with any of my Visual Basic or PHP projects, just the Java project. Eventually it dawned on me what was causing this.  NetBeans IDE has built in support for Subversion which uses the CollabNet Subversion client.  When I was working within the NetBeans IDE the CollabNet client was working behind the scenes and changing files within the .svn folder on my system.  When the time came for me to check in my changes through TortoiseSVN I would get the not so helpful error message.</p>
<p>After a quick Google search I found the solution on the <a href="http://forums.netbeans.org/viewtopic.php?p=49144" target="_new" rel="nofollow">NetBeans Forums</a>. In the NetBeans IDE go to <b>Tools->Plugins</b> then under the <b>Installed</b> tab check <b>Subversion</b> and hit <b>Uninstall</b>.  The plugin will be removed and you will be prompted to restart the IDE.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.fettesps.com/disable-svn-in-netbeans/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

