<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss 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/" version="2.0">

<channel>
	<title>Adam Myatt's Weblog</title>
	<link>http://pronetbeans.com</link>
	<description>The source for learning NetBeans.</description>
	<pubDate>Wed, 20 Aug 2008 01:03:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/ProNetbeans" type="application/rss+xml" /><item>
		<title>Participating with NetCat65 and testing SQL History in NetBeans 6.5</title>
		<link>http://pronetbeans.com/archives/47</link>
		<comments>http://pronetbeans.com/archives/47#comments</comments>
		<pubDate>Wed, 20 Aug 2008 01:03:08 +0000</pubDate>
		<dc:creator>Adam Myatt</dc:creator>
		
		<category><![CDATA[NetBeans]]></category>

		<category><![CDATA[NetCat65]]></category>

		<category><![CDATA[SQL]]></category>

		<category><![CDATA[Testing]]></category>

		<guid isPermaLink="false">http://pronetbeans.com/archives/47</guid>
		<description><![CDATA[I was recently added to the list of folks participating with the NetCat 65 program, NetBeans 6.5 Community Acceptance Testing described here : http://qa.netbeans.org/processes/cat/65/
So far, my experience has been quite positive. I&#8217;ve seen a number of folks testing all aspects on NetBeans such as usability, bugs, new features, and more. My current focus has been [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently added to the list of folks participating with the NetCat 65 program, NetBeans 6.5 Community Acceptance Testing described here : <a target="_blank" href="http://qa.netbeans.org/processes/cat/65/">http://qa.netbeans.org/processes/cat/65/</a></p>
<p>So far, my experience has been quite positive. I&#8217;ve seen a number of folks testing all aspects on NetBeans such as usability, bugs, new features, and more. My current focus has been on the database tools added as part of NetBeans 6.5 (currently in Beta). The SQL History tool is pretty interesting, in that it stores the complete list of SQL you have executed.</p>
<p> <a href="http://pronetbeans.com/archives/47#more-47" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pronetbeans.com/archives/47/feed</wfw:commentRss>
		</item>
		<item>
		<title>NetBeans 6.5 Beta Released</title>
		<link>http://pronetbeans.com/archives/45</link>
		<comments>http://pronetbeans.com/archives/45#comments</comments>
		<pubDate>Fri, 15 Aug 2008 02:28:25 +0000</pubDate>
		<dc:creator>Adam Myatt</dc:creator>
		
		<category><![CDATA[NetBeans]]></category>

		<category><![CDATA[Java]]></category>

		<category><![CDATA[release]]></category>

		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://pronetbeans.com/archives/45</guid>
		<description><![CDATA[The NetBeans team has announced the availability of NetBeans 6.5 Beta.
Some new and improved features include :

PHP version of the IDE
Improved Eclipse project import
Compile on Save / Deploy on Save
Groovy and Grails support
and much more!

Check out the official release page : http://www.netbeans.org/community/releases/65/
]]></description>
			<content:encoded><![CDATA[<p>The NetBeans team has announced the availability of NetBeans 6.5 Beta.</p>
<p>Some new and improved features include :</p>
<ul>
<li>PHP version of the IDE</li>
<li>Improved Eclipse project import</li>
<li>Compile on Save / Deploy on Save</li>
<li>Groovy and Grails support</li>
<li>and much more!</li>
</ul>
<p>Check out the official release page : <a target="_blank" href="http://www.netbeans.org/community/releases/65/">http://www.netbeans.org/community/releases/65/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pronetbeans.com/archives/45/feed</wfw:commentRss>
		</item>
		<item>
		<title>Sun Releases Java 6 Update 7 (JDK 1.6.0.07)</title>
		<link>http://pronetbeans.com/archives/46</link>
		<comments>http://pronetbeans.com/archives/46#comments</comments>
		<pubDate>Sat, 26 Jul 2008 02:35:55 +0000</pubDate>
		<dc:creator>Adam Myatt</dc:creator>
		
		<category><![CDATA[Java]]></category>

		<category><![CDATA[jdk]]></category>

		<category><![CDATA[jdk 1.6.0.07]]></category>

		<category><![CDATA[release]]></category>

		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://pronetbeans.com/archives/46</guid>
		<description><![CDATA[

BugId
Category
Subcategory
Description


   6511756


hotspot


jvmpi


forte_is_valid_method() should call CollectedHeap::is_in_reserved() rather than is_in()




   6671051


java


classes_lang


(process) Runtime.exec() hangs if signalled during fork/exec




   6652375


java


classes_security


Add replacement GlobalSign Root CA to JDK




   6696605


java


classes_security


Add Secom root certificates to the JDK




   6656050


java


classes_security


Add AOL Root CA #2 to JDK




   6679340


java


classes_util_i18n


(tz) Support tzdata2008b




   6685178


java


monitoring


REGRESSION: NPE [...]]]></description>
			<content:encoded><![CDATA[<table summary="changes in update release 6u7" border="1" cellpadding="5" cellspacing="0">
<thead>
<th>BugId</th>
<th>Category</th>
<th>Subcategory</th>
<th>Description</th>
</thead>
<td align="right">
   <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6511756">6511756</a>
</td>
<td>
hotspot
</td>
<td>
jvmpi
</td>
<td>
forte_is_valid_method() should call CollectedHeap::is_in_reserved() rather than is_in()
</td>
</tr>
<tr>
<td align="right">
   <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6671051">6671051</a>
</td>
<td>
java</p>
</td>
<td>
classes_lang
</td>
<td>
(process) Runtime.exec() hangs if signalled during fork/exec
</td>
</tr>
<tr>
<td align="right">
   <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6652375">6652375</a>
</td>
<td>
java
</td>
<td>
classes_security
</td>
<td>
Add replacement GlobalSign Root CA to JDK
</td>
</tr>
<tr>
<td align="right">
   <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6696605">6696605</a>
</td>
<td>
java
</td>
<td>
<p>classes_security
</td>
<td>
Add Secom root certificates to the JDK
</td>
</tr>
<tr>
<td align="right">
   <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6656050">6656050</a>
</td>
<td>
java
</td>
<td>
classes_security</p>
</td>
<td>
Add AOL Root CA #2 to JDK
</td>
</tr>
<tr>
<td align="right">
   <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6679340">6679340</a>
</td>
<td>
java
</td>
<td>
classes_util_i18n
</td>
<td>
(tz) Support tzdata2008b
</td>
</tr>
<tr>
<td align="right">
   <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6685178">6685178</a>
</td>
<td>
java
</td>
<td>
monitoring
</td>
<td>
<p>REGRESSION: NPE in ConnectorBootstrap when Agent.getManagementProperties() returns null.
</td>
</tr>
<tr>
<td align="right">
   <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6643315">6643315</a>
</td>
<td>
java
</td>
<td>
sunservicetags
</td>
<td>
Product Registration Info button in the Windows JDK installer should use default browser</p>
</td>
</tr>
<tr>
<td align="right">
   <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6656520">6656520</a>
</td>
<td>
java_plugin
</td>
<td>
misc
</td>
<td>
Loading cacerts file from running JRE directory (JRE 1.4.2)
</td>
</tr>
<tr>
<td align="right">
   <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6567254">6567254</a>
</td>
<td>
java_plugin
</td>
<td>
ns6
</td>
<td>
Stack stomp in CSecureJNIEnv
</td>
</tr>
<tr>
<td align="right">
   <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6674757">6674757</a>
</td>
<td>
java_plugin
</td>
<td>
plugin
</td>
<td>
Firefox hang upon first applet launch with Windows OEM builds of Java
</td>
</tr>
<tr>
<td align="right">
   <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6709297">6709297</a>
</td>
<td>
javawebstart
</td>
<td>
other
</td>
<td>
Wonderland does not install via webstart with 6u10 b21 or later
</td>
</tr>
<tr>
<td align="right">
<p>   <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6620632">6620632</a>
</td>
<td>
jaxp
</td>
<td>
stax
</td>
<td>
DTD event is missing entity and notation information
</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://pronetbeans.com/archives/46/feed</wfw:commentRss>
		</item>
		<item>
		<title>NetBeans Version Roadmap Updated</title>
		<link>http://pronetbeans.com/archives/44</link>
		<comments>http://pronetbeans.com/archives/44#comments</comments>
		<pubDate>Sat, 10 May 2008 02:13:00 +0000</pubDate>
		<dc:creator>Adam Myatt</dc:creator>
		
		<category><![CDATA[NetBeans]]></category>

		<category><![CDATA[JavaOne]]></category>

		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://pronetbeans.com/archives/44</guid>
		<description><![CDATA[I haven&#8217;t checked it in a while, but I recently saw that the NetBeans team has updated the official roadmap for version releases. I had previously seen a mention of NetBeans 7, but it seems the next release will be NetBeans 6.5.
]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t checked it in a while, but I recently saw that the NetBeans team has updated the official roadmap for version releases. I had previously seen a mention of NetBeans 7, but it seems the next release will be NetBeans 6.5.</p>
<p> <a href="http://pronetbeans.com/archives/44#more-44" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pronetbeans.com/archives/44/feed</wfw:commentRss>
		</item>
		<item>
		<title>NetBeans Module Automatic Unload</title>
		<link>http://pronetbeans.com/archives/43</link>
		<comments>http://pronetbeans.com/archives/43#comments</comments>
		<pubDate>Fri, 09 May 2008 20:51:03 +0000</pubDate>
		<dc:creator>Adam Myatt</dc:creator>
		
		<category><![CDATA[NetBeans]]></category>

		<category><![CDATA[feature on demand]]></category>

		<category><![CDATA[Module]]></category>

		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://pronetbeans.com/archives/43</guid>
		<description><![CDATA[As a quick follow-up to my previous post on the NetBeans Feature on Demand, I was thinking about how nice it would to further optimize the NetBeans startup time (via module unloading).
When NetBeans loads, it processes and loads each module that is active. To speed up this process I manually uninstall modules I know I [...]]]></description>
			<content:encoded><![CDATA[<p>As a quick follow-up to my previous post on the <a target="_blank" href="http://pronetbeans.com/archives/41">NetBeans Feature on Demand</a>, I was thinking about how nice it would to further optimize the NetBeans startup time (via module unloading).</p>
<p>When NetBeans loads, it processes and loads each module that is active. To speed up this process I manually uninstall modules I know I will never use, as well as deactivating modules I use infrequently. It would be nice if the IDE could monitor and do this for me.</p>
<p> <a href="http://pronetbeans.com/archives/43#more-43" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pronetbeans.com/archives/43/feed</wfw:commentRss>
		</item>
		<item>
		<title>Smashmouth Rocks JavaOne 2008</title>
		<link>http://pronetbeans.com/archives/42</link>
		<comments>http://pronetbeans.com/archives/42#comments</comments>
		<pubDate>Fri, 09 May 2008 05:33:23 +0000</pubDate>
		<dc:creator>Adam Myatt</dc:creator>
		
		<category><![CDATA[Java]]></category>

		<category><![CDATA[NetBeans]]></category>

		<category><![CDATA[JavaOne]]></category>

		<category><![CDATA[Smashmouth]]></category>

		<guid isPermaLink="false">http://pronetbeans.com/archives/42</guid>
		<description><![CDATA[The band Smashmouth played a private concert at the JavaOne 2008 &#8220;After Dark&#8221; party held Thursday night in Yerba Buena Gardens outside the Moscone Center.
The evening was filled was some great music and food. Check out these pics and videos&#8230;
]]></description>
			<content:encoded><![CDATA[<p>The band Smashmouth played a private concert at the JavaOne 2008 &#8220;After Dark&#8221; party held Thursday night in Yerba Buena Gardens outside the Moscone Center.</p>
<p>The evening was filled was some great music and food. Check out these pics and videos&#8230;</p>
<p> <a href="http://pronetbeans.com/archives/42#more-42" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pronetbeans.com/archives/42/feed</wfw:commentRss>
		</item>
		<item>
		<title>NetBeans Feature on Demand ‘Birds of a Feather’ Session at JavaOne 2008</title>
		<link>http://pronetbeans.com/archives/41</link>
		<comments>http://pronetbeans.com/archives/41#comments</comments>
		<pubDate>Thu, 08 May 2008 05:25:53 +0000</pubDate>
		<dc:creator>Adam Myatt</dc:creator>
		
		<category><![CDATA[NetBeans]]></category>

		<category><![CDATA[feature on demand]]></category>

		<category><![CDATA[JavaOne]]></category>

		<category><![CDATA[NetBeans load time]]></category>

		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://pronetbeans.com/archives/41</guid>
		<description><![CDATA[Earlier tonight, I attended the NetBeans &#8216;Feature on Demand&#8217; Birds of a Feather Session at JavaOne 2008 presented by Sun&#8217;s Geertjan Wielenga and Jiri Rechtacek.
]]></description>
			<content:encoded><![CDATA[<p>Earlier tonight, I attended the NetBeans &#8216;Feature on Demand&#8217; Birds of a Feather Session at JavaOne 2008 presented by Sun&#8217;s Geertjan Wielenga and Jiri Rechtacek.</p>
<p> <a href="http://pronetbeans.com/archives/41#more-41" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pronetbeans.com/archives/41/feed</wfw:commentRss>
		</item>
		<item>
		<title>Javadoc Analyzer in NetBeans 6.1</title>
		<link>http://pronetbeans.com/archives/40</link>
		<comments>http://pronetbeans.com/archives/40#comments</comments>
		<pubDate>Thu, 08 May 2008 03:39:30 +0000</pubDate>
		<dc:creator>Adam Myatt</dc:creator>
		
		<category><![CDATA[Java]]></category>

		<category><![CDATA[NetBeans]]></category>

		<category><![CDATA[Javadoc]]></category>

		<category><![CDATA[Javadoc Analyzer]]></category>

		<guid isPermaLink="false">http://pronetbeans.com/archives/40</guid>
		<description><![CDATA[NetBeans 5.5 contained a useful tool called the &#8216;Javadoc Auto Comment&#8217; feature. With the heavy rewrite of the NetBeans internals in version 6.0, the auto comment tool as we knew it was stripped out. This was down with some howling and protests, but at least there was a good reason (and not simply for the [...]]]></description>
			<content:encoded><![CDATA[<p>NetBeans 5.5 contained a useful tool called the &#8216;Javadoc Auto Comment&#8217; feature. With the heavy rewrite of the NetBeans internals in version 6.0, the auto comment tool as we knew it was stripped out. This was down with some howling and protests, but at least there was a good reason (and not simply for the heck of it).</p>
<p>Quoted from <a target="_blank" href="http://wiki.netbeans.org/ACTool" title="NetBeans Wiki">NetBeans Wiki</a>:</p>
<blockquote><p>&#8216;We have intended to replace the AC tool for a long time due to its archaic UI and a weak linkage to the editor, where users usually want to edit source code. Changes in the Java model in NetBeans 6.0 forced us to drop the tool immediately and start to implement particular features that will replace the tool as resources permit. So NetBeans 6.0 contains basic <a href="http://www.netbeans.org/issues/show_bug.cgi?id=89603" class="external">editor hints</a> to create or fix javadoc, and the long-awaited ability to <a href="http://www.netbeans.org/issues/show_bug.cgi?id=77039" class="external">generate javadoc skeleton</a> on <span style="font-family: monospace; white-space: pre">/** + &lt;Enter&gt;</span> in the open editor as the first step. Of course, the Javadoc Search and the Show Javadoc were adapted to the new model as well.&#8217;</p></blockquote>
<p>NetBeans 6 did contain Javadoc hints and warning so on a class by class basis you could see what was missing or incomplete. NetBeans 6.1 introduced Javadoc code completion. So far so good, but it wasn&#8217;t quite as useful as the old Auto Comment tool.</p>
<p>I recently checked the NetBeans 6.1 update center and discovered a plugin listed called Javadoc Analyzer. I had been following several related bug posts at the NetBeans site and knew they had been working on it, but had not had time to try it out.</p>
<p>Download it from the update center and you&#8217;re ready to use it with no configuration.</p>
<p> <a href="http://pronetbeans.com/archives/40#more-40" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pronetbeans.com/archives/40/feed</wfw:commentRss>
		</item>
		<item>
		<title>Exploring the Pavilion Floor at JavaOne 2008</title>
		<link>http://pronetbeans.com/archives/39</link>
		<comments>http://pronetbeans.com/archives/39#comments</comments>
		<pubDate>Wed, 07 May 2008 08:20:20 +0000</pubDate>
		<dc:creator>Adam Myatt</dc:creator>
		
		<category><![CDATA[Java]]></category>

		<category><![CDATA[NetBeans]]></category>

		<category><![CDATA[JavaOne]]></category>

		<guid isPermaLink="false">http://pronetbeans.com/archives/39</guid>
		<description><![CDATA[The JavaOne Pavilion (basically a trade show and vendor demo space) is always an interesting experience. It&#8217;s a mix of IT geeks running around seeking out swag, vendors hawking the next great widget or framework, and interesting &#8220;attractions&#8221; littered throughout the space.
The obvious things you notice heading up the main aisle are the big sponsor [...]]]></description>
			<content:encoded><![CDATA[<p>The JavaOne Pavilion (basically a trade show and vendor demo space) is always an interesting experience. It&#8217;s a mix of IT geeks running around seeking out swag, vendors hawking the next great widget or framework, and interesting &#8220;attractions&#8221; littered throughout the space.</p>
<p>The obvious things you notice heading up the main aisle are the big sponsor vendors such as Intel, Oracle, etc.</p>
<p><img border="0" vspace="5" width="500" src="http://www.pronetbeans.com/article-files/javaone_day1_03.jpg" hspace="5" height="375" /></p>
<p>Ever present and ready to discuss a technology&#8230;</p>
<p><img border="0" vspace="5" width="500" src="http://www.pronetbeans.com/article-files/javaone_day1_04.jpg" hspace="5" height="375" /></p>
<p>Then there are always cool technologies on display that utilize Java in some way such as the <a target="_blank" href="http://perronerobotics.com/">Perrone Robotics</a> autonomous vehicle.</p>
<p><img border="0" vspace="5" width="500" src="http://www.pronetbeans.com/article-files/javaone_day1_05.jpg" hspace="5" height="375" /></p>
<p>Seen here are some of the electronics it runs in the trunk :</p>
<p><img border="0" vspace="5" width="500" src="http://www.pronetbeans.com/article-files/javaone_day1_06.jpg" hspace="5" height="375" /></p>
<p>And of course, always something weird. This live action machine shot marbles through a series of pipes to test and try out real time Java technology.</p>
<p><img border="0" vspace="5" width="500" src="http://www.pronetbeans.com/article-files/javaone_day1_07.jpg" hspace="5" height="375" /></p>
<p>And finally, and perhaps most bizarre, Intel&#8217;s oxygen bar. They touted the slogan as something similar to &#8216; since oxygen is essential to life, so is Intel&#8217; [reletive to computing life]. The picture below shows bubbling bottles of 90% oxygen with aromatherapy flavors mixed in. You were given a personal nose tube, slightly uncomfortable, but not too bad given the unique experience. If you haven&#8217;t tried it you should definitely try to stop by before the end of ther week.</p>
<p><img border="0" vspace="5" width="500" src="http://www.pronetbeans.com/article-files/javaone_day1_08.jpg" hspace="5" height="375" /></p>
<p>After a few hours of walking the floor, gathering brochures, and scoping out specific vendors, I enjoyed I few beers and some food as part of the Pavilion Welcome Reception. I&#8217;m still amazed at how long the lines get at these things, but hey, it&#8217;s free beer at an IT conference!</p>
]]></content:encoded>
			<wfw:commentRss>http://pronetbeans.com/archives/39/feed</wfw:commentRss>
		</item>
		<item>
		<title>‘Pro NetBeans IDE 6′ Book Signing at JavaOne</title>
		<link>http://pronetbeans.com/archives/38</link>
		<comments>http://pronetbeans.com/archives/38#comments</comments>
		<pubDate>Wed, 07 May 2008 07:58:32 +0000</pubDate>
		<dc:creator>Adam Myatt</dc:creator>
		
		<category><![CDATA[NetBeans]]></category>

		<category><![CDATA[apress]]></category>

		<category><![CDATA[Java]]></category>

		<category><![CDATA[JavaOne]]></category>

		<guid isPermaLink="false">http://pronetbeans.com/archives/38</guid>
		<description><![CDATA[The first day of the JavaOne 2008 conference, Tuesday, May 6, I was lucky enough to be able to have a book signing for my book, Pro NetBeans IDE 6 Rich Client Platform Edition.
 
I would like to thank all the folks that stopped by to get their copy signed, to briefly chat about NetBeans, or [...]]]></description>
			<content:encoded><![CDATA[<p>The first day of the JavaOne 2008 conference, Tuesday, May 6, I was lucky enough to be able to have a book signing for my book, <a target="_blank" href="http://www.amazon.com/dp/1590598954?tag=smarterprogra-20&amp;camp=14573&amp;creative=327641&amp;linkCode=as1&amp;creativeASIN=1590598954&amp;adid=0CTYR0HJQG9319J6GZD1&amp;" title="Pro NetBeans IDE 6 Rich Client Platform Edition">Pro NetBeans IDE 6 Rich Client Platform Edition</a>.</p>
<p> <img border="0" vspace="5" width="375" src="http://www.pronetbeans.com/article-files/javaone_day1_02.jpg" hspace="5" height="500" /></p>
<p>I would like to thank all the folks that stopped by to get their copy signed, to briefly chat about NetBeans, or for some strange reason to ask for directions to something (specifically Esplanade rooms, the bathroom, some vendor&#8217;s table, you name it..). I guess there&#8217;s something about a guy sitting behind a desk/podium that screams &#8220;Information Booth&#8221;.</p>
<p> <img border="0" vspace="5" width="400" src="http://www.pronetbeans.com/article-files/javaone_day1_01.jpg" hspace="5" alt="Author Signing Schedule at JavaOne 2008 Day 1" height="300" /></p>
<p> Anyways, I had a good time and enjoyed meeting everyone who stopped by. I would like to thank the guys at <a target="_blank" href="http://www.apress.com/book/view/9781590598955" title="Apress">Apress</a> and <a target="_blank" href="http://www.DigitalGuru.com" title="DigitalGuru">DigitalGuru</a> for arranging to have me there.</p>
]]></content:encoded>
			<wfw:commentRss>http://pronetbeans.com/archives/38/feed</wfw:commentRss>
		</item>
		<item>
		<title>CommunityOne 2008 - Cinco De Mayo Party Videos</title>
		<link>http://pronetbeans.com/archives/37</link>
		<comments>http://pronetbeans.com/archives/37#comments</comments>
		<pubDate>Tue, 06 May 2008 05:22:18 +0000</pubDate>
		<dc:creator>Adam Myatt</dc:creator>
		
		<category><![CDATA[NetBeans]]></category>

		<category><![CDATA[CommunityOne]]></category>

		<category><![CDATA[JavaOne]]></category>

		<category><![CDATA[JavaOne2008]]></category>

		<guid isPermaLink="false">http://pronetbeans.com/archives/37</guid>
		<description><![CDATA[I visted the Communityone 2008 Cinco De Mayo Party (community reception hosted at the end of the day). There was a good amount of food, free beer, and entertainment. I thought I would post a few interesting videos from the night. As you&#8217;ll see computer geeks know how to have fun&#8230;












]]></description>
			<content:encoded><![CDATA[<p>I visted the Communityone 2008 Cinco De Mayo Party (community reception hosted at the end of the day). There was a good amount of food, free beer, and entertainment. I thought I would post a few interesting videos from the night. As you&#8217;ll see computer geeks know how to have fun&#8230;</p>
<p><object width="425" height="355">
<param name="movie" value="http://www.youtube.com/v/0imoG7URfXE&#038;hl=en"></param>
<param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/0imoG7URfXE&#038;hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></p>
<p><object width="425" height="355">
<param name="movie" value="http://www.youtube.com/v/X5yCOzndz_I&#038;hl=en"></param>
<param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/X5yCOzndz_I&#038;hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></p>
<p><object width="425" height="355">
<param name="movie" value="http://www.youtube.com/v/1jEBQkO-L6c&#038;hl=en"></param>
<param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/1jEBQkO-L6c&#038;hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></p>
<p><object width="425" height="355">
<param name="movie" value="http://www.youtube.com/v/jgfXurgJuEo&#038;hl=en"></param>
<param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/jgfXurgJuEo&#038;hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://pronetbeans.com/archives/37/feed</wfw:commentRss>
		</item>
		<item>
		<title>Sun Distributes ‘100 NetBeans IDE Tips and Tricks’ Mini-Book at NetBeans Day 2008.</title>
		<link>http://pronetbeans.com/archives/36</link>
		<comments>http://pronetbeans.com/archives/36#comments</comments>
		<pubDate>Tue, 06 May 2008 04:39:57 +0000</pubDate>
		<dc:creator>Adam Myatt</dc:creator>
		
		<category><![CDATA[NetBeans]]></category>

		<category><![CDATA[CommunityOne]]></category>

		<category><![CDATA[Java]]></category>

		<category><![CDATA[JavaOne]]></category>

		<category><![CDATA[JavaOne2008]]></category>

		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://pronetbeans.com/archives/36</guid>
		<description><![CDATA[Throughout Sun&#8217;s CommunityOne 2008 (specifically the NetBeans track), they distributed the standard swag one might expect of this type of event (bags, hats, shirts, etc.). At the conclusion of NetBeans Day, they also distributed a new mini-book about NetBeans tips and tricks. Roughly 140 pages, the book was authored by Ruth Kusterer, a technical writer for [...]]]></description>
			<content:encoded><![CDATA[<p>Throughout Sun&#8217;s CommunityOne 2008 (specifically the NetBeans track), they distributed the standard swag one might expect of this type of event (bags, hats, shirts, etc.). At the conclusion of NetBeans Day, they also distributed a new mini-book about NetBeans tips and tricks. Roughly 140 pages, the book was authored by <a target="_blank" href="http://blogs.sun.com/seapegasus/" title="Ruth Kusterer">Ruth Kusterer</a>, a technical writer for Sun Microsystems based in the Czech Republic. The book covers 100 tips and tricks that were collected from NetBeans documentation, blogs, forums, and the NetBeans community.</p>
<p>The 100 NetBeans Tips and Tricks book includes the following:</p>
<p> <a href="http://pronetbeans.com/archives/36#more-36" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pronetbeans.com/archives/36/feed</wfw:commentRss>
		</item>
		<item>
		<title>NetBeans Day at CommunityOne 2008</title>
		<link>http://pronetbeans.com/archives/35</link>
		<comments>http://pronetbeans.com/archives/35#comments</comments>
		<pubDate>Mon, 05 May 2008 20:15:58 +0000</pubDate>
		<dc:creator>Adam Myatt</dc:creator>
		
		<category><![CDATA[NetBeans]]></category>

		<category><![CDATA[CommunityOne]]></category>

		<category><![CDATA[Java]]></category>

		<category><![CDATA[JavaOne]]></category>

		<category><![CDATA[JavaOne2008]]></category>

		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://pronetbeans.com/archives/35</guid>
		<description><![CDATA[Greetings everyone! I&#8217;m currently attending CommunityOne 2008 in San Francisco, California. I just wanted to provide a quick overview for folks who couldn&#8217;t make it here&#8230;

]]></description>
			<content:encoded><![CDATA[<p>Greetings everyone! I&#8217;m currently attending CommunityOne 2008 in San Francisco, California. I just wanted to provide a quick overview for folks who couldn&#8217;t make it here&#8230;</p>
<p> <a href="http://pronetbeans.com/archives/35#more-35" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pronetbeans.com/archives/35/feed</wfw:commentRss>
		</item>
		<item>
		<title>Sun Releases Java 6 Update 6 (JDK 1.6.0.06)</title>
		<link>http://pronetbeans.com/archives/34</link>
		<comments>http://pronetbeans.com/archives/34#comments</comments>
		<pubDate>Thu, 01 May 2008 13:14:20 +0000</pubDate>
		<dc:creator>Adam Myatt</dc:creator>
		
		<category><![CDATA[Java]]></category>

		<category><![CDATA[jdk]]></category>

		<category><![CDATA[jdk 1.6.0.06]]></category>

		<category><![CDATA[release]]></category>

		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://pronetbeans.com/archives/34</guid>
		<description><![CDATA[Bug fixes in JDK 1.6.0.6.


BugId
Category
Subcategory
Description


6532373
java
classes_awt
xcb_xlib.c:50: xcb_xlib_unlock: Assertion &#8216;c-&#62;xlib.lock&#8217; failed.


6632169
java
classes_net
HttpClient and HttpsClient should not try to reverse lookup IP address of a proxy server


6648816
java
classes_security
REGRESSION: setting -Djava.security.debug=failure result in NPE in ACC


6650748
java
classes_util_i18n
(tz) Java runtime doesn&#8217;t detect VET time zone correctly on Windows


6673080
java
classes_util_i18n
(tz) Support tzdata2008a


6676491
java
sunservicetags
Incorrect locale specified in the URL embedded in the register[_&#60;locale&#62;].html


6641731
java_deployment
general
The Java control panel is [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Bug fixes in JDK 1.6.0.6.</strong></p>
<table border="1" summary="changes in update release 6u5" cellPadding="5" cellSpacing="0">
<thead>
<th>BugId</th>
<th>Category</th>
<th>Subcategory</th>
<th>Description</th>
</tr>
<tr>
<td align="right"><a target="_blank" href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373">6532373</a></td>
<td>java</td>
<td>classes_awt</td>
<td>xcb_xlib.c:50: xcb_xlib_unlock: Assertion &#8216;c-&gt;xlib.lock&#8217; failed.</td>
</tr>
<tr>
<td align="right"><a target="_blank" href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6632169">6632169</a></td>
<td>java</td>
<td>classes_net</td>
<td>HttpClient and HttpsClient should not try to reverse lookup IP address of a proxy server</td>
</tr>
<tr>
<td align="right"><a target="_blank" href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6648816">6648816</a></td>
<td>java</td>
<td>classes_security</td>
<td>REGRESSION: setting -Djava.security.debug=failure result in NPE in ACC</td>
</tr>
<tr>
<td align="right"><a target="_blank" href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6650748">6650748</a></td>
<td>java</td>
<td>classes_util_i18n</td>
<td>(tz) Java runtime doesn&#8217;t detect VET time zone correctly on Windows</td>
</tr>
<tr>
<td align="right"><a target="_blank" href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6673080">6673080</a></td>
<td>java</td>
<td>classes_util_i18n</td>
<td>(tz) Support tzdata2008a</td>
</tr>
<tr>
<td align="right"><a target="_blank" href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6676491">6676491</a></td>
<td>java</td>
<td>sunservicetags</td>
<td>Incorrect locale specified in the URL embedded in the register[_&lt;locale&gt;].html</td>
</tr>
<tr>
<td align="right"><a target="_blank" href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6641731">6641731</a></td>
<td>java_deployment</td>
<td>general</td>
<td>The Java control panel is not showing up in the Windows Vista control panel on a AMD 64 machine</td>
</tr>
<tr>
<td align="right"><a target="_blank" href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6618901">6618901</a></td>
<td>java_plugin</td>
<td>plugin</td>
<td>6.0 JRE applet running on Vista limits heap to 64 MB</td>
</tr>
<tr>
<td align="right"><a target="_blank" href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6648381">6648381</a></td>
<td>java_plugin</td>
<td>plugin</td>
<td>FontConfiguration exception preventing applets from loading</td>
</tr>
<tr>
<td align="right"><a target="_blank" href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6595845">6595845</a></td>
<td>javawebstart</td>
<td>general</td>
<td>Java 6 JavaWebstart increases footprint by factor 2</td>
</tr>
<tr>
<td align="right"><a target="_blank" href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6648395">6648395</a></td>
<td>javawebstart</td>
<td>install</td>
<td>JWS can&#8217;t find cache file after network crash</td>
</tr>
<tr>
<td align="right"><a target="_blank" href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6672868">6672868</a></td>
<td>jax-ws</td>
<td>other</td>
<td>Package javax.xml.ws.wsaddressing not included in make/docs/CORE_PKGS.gmk</td>
</tr>
<tr>
<td align="right"><a target="_blank" href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6578538">6578538</a></td>
<td>jce</td>
<td>classes_crypto</td>
<td>com.sun.crypto.provider.SunJCE instance leak using KRB5 and LoginContext</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://pronetbeans.com/archives/34/feed</wfw:commentRss>
		</item>
		<item>
		<title>NetBeans IDE 6.1 Final Release</title>
		<link>http://pronetbeans.com/archives/33</link>
		<comments>http://pronetbeans.com/archives/33#comments</comments>
		<pubDate>Mon, 28 Apr 2008 13:02:41 +0000</pubDate>
		<dc:creator>Adam Myatt</dc:creator>
		
		<category><![CDATA[NetBeans]]></category>

		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://pronetbeans.com/archives/33</guid>
		<description><![CDATA[It&#8217;s here&#8230; the final release of NetBeans 6.1.
Download it here : http://download.netbeans.org/netbeans/6.1/final/
Release Overview : http://www.netbeans.org/community/releases/61/
Release Notes : http://www.netbeans.org/community/releases/61/relnotes.html

]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s here&#8230; the final release of NetBeans 6.1.</p>
<p>Download it here : <a target="_blank" href="http://download.netbeans.org/netbeans/6.1/final/">http://download.netbeans.org/netbeans/6.1/final/</a></p>
<p>Release Overview : <a target="_blank"  href="http://www.netbeans.org/community/releases/61/">http://www.netbeans.org/community/releases/61/</a></p>
<p>Release Notes : <a target="_blank" href="http://www.netbeans.org/community/releases/61/relnotes.html">http://www.netbeans.org/community/releases/61/relnotes.html</a></p>
<p><img border="0" vspace="5" width="472" src="http://www.pronetbeans.com/article-files/nb6-1-splash.jpg" hspace="5" height="298" /></p>
]]></content:encoded>
			<wfw:commentRss>http://pronetbeans.com/archives/33/feed</wfw:commentRss>
		</item>
		<item>
		<title>Experimenting With JavaScript Support in NetBeans 6.1</title>
		<link>http://pronetbeans.com/archives/32</link>
		<comments>http://pronetbeans.com/archives/32#comments</comments>
		<pubDate>Sat, 19 Apr 2008 03:56:45 +0000</pubDate>
		<dc:creator>Adam Myatt</dc:creator>
		
		<category><![CDATA[NetBeans]]></category>

		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://pronetbeans.com/archives/32</guid>
		<description><![CDATA[NetBeans 6.1 includes new and improved JavaScript support. The NetBeans New and Noteworthy page on the NetBeans Wiki lists the following new and updated features :

Semantic Highlighting
Mark occurrences
Instant Rename
Refactoring
Quick Fixes and Semantic Checks
Tasklist
Code Completion and Type Analysis
Go To Declaration
Documentation
Embedded Completion
Browser Compatibility Info
Embedding
Open Type
6.0 Java Script Information

I&#8217;ve been busy the last few weeks field testing it [...]]]></description>
			<content:encoded><![CDATA[<p>NetBeans 6.1 includes new and improved JavaScript support. The NetBeans New and Noteworthy page on the NetBeans Wiki lists the following new and updated features :</p>
<ul>
<li>Semantic Highlighting</li>
<li>Mark occurrences</li>
<li>Instant Rename</li>
<li>Refactoring</li>
<li>Quick Fixes and Semantic Checks</li>
<li>Tasklist</li>
<li>Code Completion and Type Analysis</li>
<li>Go To Declaration</li>
<li>Documentation</li>
<li>Embedded Completion</li>
<li>Browser Compatibility Info</li>
<li>Embedding</li>
<li>Open Type</li>
<li>6.0 Java Script Information</li>
</ul>
<p>I&#8217;ve been busy the last few weeks field testing it in some code and have found pros and cons. This article discusses some of these issues and features using some sample code.</p>
<p> <a href="http://pronetbeans.com/archives/32#more-32" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pronetbeans.com/archives/32/feed</wfw:commentRss>
		</item>
		<item>
		<title>NetBeans Presentation at Java Users Group in Albany, NY.</title>
		<link>http://pronetbeans.com/archives/31</link>
		<comments>http://pronetbeans.com/archives/31#comments</comments>
		<pubDate>Fri, 18 Apr 2008 12:53:31 +0000</pubDate>
		<dc:creator>Adam Myatt</dc:creator>
		
		<category><![CDATA[NetBeans]]></category>

		<category><![CDATA[Java]]></category>

		<category><![CDATA[JUG]]></category>

		<guid isPermaLink="false">http://pronetbeans.com/archives/31</guid>
		<description><![CDATA[I&#8217;d like to thank everyone who came out Thursday night, April 17, to hear me speak at the meeting of the Capital District Java Developer&#8217;s Network in Albany, NY, USA. This is the third or fourth time I&#8217;ve spoken at meetings of this group and I always have enjoyed it, especially when I can talk NetBeans.
The [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;d like to thank everyone who came out Thursday night, April 17, to hear me speak at the meeting of the <a target="_blank" href="http://cdjdn.com/" title="Capital District Java Developer's Network">Capital District Java Developer&#8217;s Network</a> in Albany, NY, USA. This is the third or fourth time I&#8217;ve spoken at meetings of this group and I always have enjoyed it, especially when I can talk NetBeans.</p>
<p>The presentation was broken down into two parts (mainly so we&#8217;d have an excuse for a break in the middle to get some pizza and beer).</p>
<p>Part 1 : Exploring NetBeans 6.1 Features</p>
<p>Brief overview of NetBeans 6.0 and 6.1 to discuss the improvements and features in the latest few releases. The first part of the presentation will touch on new items such as the Sharable Libraries feature and how it can impact your projects. It will also touch on items such as MySQL integration, Axis2 support, and the improved JavaScript support.</p>
<p>Part 2 : Enforcing Code Quality Practices in NetBeans</p>
<p>The second part of the presentation will focus on using the NetBeans IDE in a code quality environment. Learn how to best combine static analysis tools (such as Checkstyle and PMD) in NetBeans for enforcing Java code quality, all while integrating with your application build process in a continuous integration environment (Hudson). Lessons learned and best practices will be demonstrated.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Many thanks to the kind folks at <a target="_blank" href="http://www.apress.com" title="Apress">Apress</a> for sending some of my books to give away, both <a target="_blank" href="http://www.apress.com/book/view/9781590597880" title="Pro NetBeans IDE 5.5 Enterprise Edition">Pro NetBeans IDE 5.5 Enterprise Edition</a> and <a target="_blank" href="http://www.apress.com/book/view/9781590598955" title="Pro NetBeans IDE 6 Rich Client Platform Edition">Pro NetBeans IDE 6 Rich Client Platform Edition</a>.</p>
<p>I look forward to another talk with this group in the future! Thanks again to those who attended!</p>
]]></content:encoded>
			<wfw:commentRss>http://pronetbeans.com/archives/31/feed</wfw:commentRss>
		</item>
		<item>
		<title>NetBeans 6.1 Release Candidate Available</title>
		<link>http://pronetbeans.com/archives/30</link>
		<comments>http://pronetbeans.com/archives/30#comments</comments>
		<pubDate>Fri, 11 Apr 2008 02:00:45 +0000</pubDate>
		<dc:creator>Adam Myatt</dc:creator>
		
		<category><![CDATA[NetBeans]]></category>

		<category><![CDATA[Java]]></category>

		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://pronetbeans.com/archives/30</guid>
		<description><![CDATA[The NetBeans team has announced the official 6.1 Release Candidate.
Download it here : http://www.netbeans.org/community/releases/61/
You can also read about all the new features in NetBeans 6.1 here : http://wiki.netbeans.org/NB61NewAndNoteWorthy
]]></description>
			<content:encoded><![CDATA[<p>The NetBeans team has announced the official 6.1 Release Candidate.</p>
<p>Download it here : <a href="http://www.netbeans.org/community/releases/61/">http://www.netbeans.org/community/releases/61/</a></p>
<p>You can also read about all the new features in NetBeans 6.1 here : <a href="http://wiki.netbeans.org/NB61NewAndNoteWorthy">http://wiki.netbeans.org/NB61NewAndNoteWorthy</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pronetbeans.com/archives/30/feed</wfw:commentRss>
		</item>
		<item>
		<title>Exploring Ant Build File Changes for Java Web Projects in NetBeans 6.1</title>
		<link>http://pronetbeans.com/archives/29</link>
		<comments>http://pronetbeans.com/archives/29#comments</comments>
		<pubDate>Thu, 27 Mar 2008 01:55:04 +0000</pubDate>
		<dc:creator>Adam Myatt</dc:creator>
		
		<category><![CDATA[NetBeans]]></category>

		<category><![CDATA[Ant]]></category>

		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://pronetbeans.com/archives/29</guid>
		<description><![CDATA[While working with a Java Web Application in NetBeans, I noticed some slight changes in the Ant build file for my project between NetBeans 6.0 and 6.1. This article explores some of the problems these changes caused to help out anyone with similar issues.
]]></description>
			<content:encoded><![CDATA[<p>While working with a Java Web Application in NetBeans, I noticed some slight changes in the Ant build file for my project between NetBeans 6.0 and 6.1. This article explores some of the problems these changes caused to help out anyone with similar issues.</p>
<p> <a href="http://pronetbeans.com/archives/29#more-29" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pronetbeans.com/archives/29/feed</wfw:commentRss>
		</item>
		<item>
		<title>Reviewing the NetBeans Unit Tests Code Coverage Plugin</title>
		<link>http://pronetbeans.com/archives/27</link>
		<comments>http://pronetbeans.com/archives/27#comments</comments>
		<pubDate>Wed, 12 Mar 2008 00:59:45 +0000</pubDate>
		<dc:creator>Adam Myatt</dc:creator>
		
		<category><![CDATA[Java]]></category>

		<category><![CDATA[NetBeans]]></category>

		<category><![CDATA[apress]]></category>

		<category><![CDATA[Cobertura]]></category>

		<category><![CDATA[Code Coverage]]></category>

		<category><![CDATA[Emma]]></category>

		<category><![CDATA[JUnit]]></category>

		<category><![CDATA[Unit Test]]></category>

		<guid isPermaLink="false">http://pronetbeans.com/archives/27</guid>
		<description><![CDATA[The NetBeans Unit Tests Code Coverage Plugin has been around for several versions of NetBeans. It measures code coverage statistics and displays annotated &#38; highlighted lines in the Source Editor in each class that were executed by unit tests. In a recent release of the plugin, it also provides a report that shows overall, package, and [...]]]></description>
			<content:encoded><![CDATA[<p>The <a target="_blank" href="http://codecoverage.netbeans.org/" title="NetBeans Unit Tests Code Coverage Plugin">NetBeans Unit Tests Code Coverage Plugin </a>has been around for several versions of NetBeans. It measures code coverage statistics and displays annotated &amp; highlighted lines in the Source Editor in each class that were executed by unit tests. In a recent release of the plugin, it also provides a report that shows overall, package, and class-level statistics. This article provides a quick overview of code coverage, why it is important, and what the NetBeans Unit Tests Code Coverage Plugin provides. I&#8217;ll also cover some pros/cons of the plugin.</p>
<p><strong>Overview of Code Coverage</strong></p>
<p>To quote myself from Chapter 16, Using Code Coverage Tools, of my book, <a target="_blank" href="http://pronetbeans.com/netbeans-books/pro-netbeans-ide-55-enterprise-edition" title="Pro NetBeans IDE 5.5 Enterprise Edition book">Pro NetBeans IDE 5.5 Enterprise Edition </a>(Apress, March 2007) :</p>
<blockquote><p>You know that it is important to write accurate and effective tests for your code. But how do you measure the effectiveness of your tests? In a perfect world, you would write a test for every class, every method, and every line of code. Depending on the complexity of your code base, this may be easy or extremely difficult.</p>
<p>How do you know when you’ve written enough tests? If you have 200 tests for your code, and they all pass, then you’re finished, right? Not necessarily. You’re finished writing tests only when you know for a fact how effective your tests are. Since testing often involves visual analysis by programmers and code-based test cases, it’s difficult to know if 100 percent of your code has been tested. This is where code coverage tools come into play.</p>
<p>The first and obvious benefit of using a code coverage tool is being able to measure the coverage of your test cases (and, by association, the test case effectiveness). Untested code can lead to bugs, and bugs lead to many other problems.</p>
<p>Code coverage tools also help you identify areas in your code that are dead or unreachable. Suppose you have written test cases for all the public methods in your code. If your code coverage tool identifies one or more methods with private-level access that have never been executed, then you may be able to remove those methods from your source code. You can then use the NetBeans Safely Delete refactoring to check the method and make sure it is not called by any other code.</p>
<p>A good code coverage tool not only tracks if each line in each method was executed, but also how many times each line was executed. Using this data and the knowledge of what lines were and were not executed, you can understand the flow of program functionality and rearrange code blocks accordingly.</p></blockquote>
<p>The NetBeans Unit Tests Code Coverage Plugin does not provide access to some of the information mentioned above (such as number of times each line was executed). However, it provides enough of the basic features you will need to be quite useful. Internally, the plugin depends on the <a target="_blank" href="http://emma.sourceforge.net/" title="Emma Code Coverage library">Emma code coverage library</a>.</p>
<p>Code Coverage tools like Emma and <a target="_blank" href="http://cobertura.sourceforge.net/" title="Cobertura Code Coverage library">Cobertura</a> (one of my personal favorites) typically work by instrumenting classes (inserting extra byte codes).  The instrumented classes are then executed instead of the original un-instrumented classes. The inserted byte codes in the instrumented classes then collect different bits of data and deposit them in a file for later analysis.</p>
<p><strong>Getting Started</strong></p>
<p>As of the official release of NetBeans 6.1 Beta, the update centers contained a slightly older version of the code coverage plugin. I would suggest going to the official <a target="_blank" href="http://codecoverage.netbeans.org/" title="NetBeans Code Coverage plugin">NetBeans code coverage plugin site</a> and download it using the prominently displayed button labeled &#8220;Download Code Coverage Plugin&#8221;.</p>
<p>Use the Plugins Manager to install the NBM file. Go to the Downloaded tab and click the Add Plugins button. Accept the license, click Next a few times, and you should be all set.</p>
<p>Once installed, you need to activate code coverage on a per-project basis. For this article, I have a standard J2SE Java Library project. In the Projects window, right-click the project name, and you should see a Coverage submenu. It contains the following options :</p>
<p><em>    Activate Coverage Collection:</em> When clicked activates code coverage collection for the selected project. This will also generate the file <em>nbproject/coverage.properties</em> and <em>coverage/emmascript.xml</em>, which are covered below.</p>
<p>    <em>Deactivate Coverage Collection:</em> When clicked deactivates code coverage collection.</p>
<p>    <em>Show Project Coverage Statistics:</em> When clicked displays a tab in the Source Editor showing the accumulated statistics collected by the plugin for the selected project.</p>
<p> <strong>Files Generated By Activating Coverage Collection</strong></p>
<p>As previously mentioned, several files are generated by activating coverage collection.</p>
<p>The <em>nbproject.properties</em> file contains several parameters used by the plugin such as :</p>
<p>    coverage.activity=ON<br />
    project.type=java<br />
    coverage.templateFile=coverage/template.emma<br />
    coverage.coverageFile=coverage/coverage.emma</p>
<p>The first parameter obviously indicates whether the coverage collection is active or inactive. The second parameter identifies the type of NetBeans project, and the last 2 parameters identify the paths to specific files used by the plugin.</p>
<p>The <em>coverage/emmascript.xml</em> file contains Ant targets for executing the instrumentation of the project class files.</p>
<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;<br />
&lt;project basedir=&#8221;.&#8221; default=&#8221;echoit&#8221; name=&#8221;Coverage Tasks&#8221;&gt;</p>
<p>    &lt;target name=&#8221;echoit&#8221; description=&#8221;test target&#8221;&gt;<br />
        &lt;echo message=&#8221;Test succeeded.&#8221;/&gt;<br />
    &lt;/target&gt;     <br />
    <br />
    &lt;target name=&#8221;instr&#8221; description=&#8221;Instrumenting jars&#8221;&gt;<br />
        &lt;echo message=&#8221;Instrumenting started.&#8221;/&gt;<br />
       <br />
        &lt;java classname=&#8221;emma&#8221; fork=&#8221;true&#8221;&gt;           <br />
            &lt;classpath &gt;<br />
                &lt;pathelement location=&#8221;${emma}&#8221;/&gt;<br />
            &lt;/classpath&gt;<br />
            &lt;arg line=&#8221;instr -verbose -m overwrite -cp &#8216;${jarfiles}&#8217; -outdir &#8216;${output.dir}&#8217; -outfile &#8216;${output.dir}/template.emma&#8217;&#8221;/&gt;<br />
        &lt;/java&gt;<br />
        &lt;echo message=&#8221;Instrumenting done.&#8221;/&gt;<br />
    &lt;/target&gt;<br />
    <br />
&lt;/project&gt;</p>
<p> The <strong>instr</strong> target runs the main <em>emma</em> class passing it several arguments to overwrite the application JAR file with a JAR file of the project&#8217;s instrumented classes.</p>
<p><strong>Creating Sample Code</strong></p>
<p>First, create a simple Java Class like this :</p>
<blockquote><p>public class StringUtils {</p>
<p>    public static String tryIntToString(int numLoops) {</p>
<p>        StringBuffer sb = new StringBuffer();</p>
<p>        for (int i = 0; i &lt; numLoops; i++) {<br />
                sb.append(String.valueOf(i));<br />
        }<br />
        return sb.toString();<br />
    }<br />
}</p></blockquote>
<p> It is basically a &#8216;hello world&#8217; class that takes in a counter variable, <em>numLoops</em>, instantiates a <em>StringBuffer</em>, and loops appending an <em>int</em> converted to a <em>String</em> into the <em>StringBuffer</em>. The method then returns the value of the <em>StringBuffer</em>.</p>
<p>To test this method, create a JUnit test. Right-click the class listing in the Projects window and select Tools &gt;&gt; Create JUnit Tests (or press Control+Shift+U). Select your preferred JUnit version (4.x in this case) and the various other JUnit settings you are prompted for. Once created, I implement a basic test case for the StringUtils class passing in a value and setting the expected return.</p>
<blockquote><p>public class StringUtilsTest {</p>
<p>    public StringUtilsTest() {<br />
    }</p>
<p>    @BeforeClass<br />
    public static void setUpClass() throws Exception {<br />
    }</p>
<p>    @AfterClass<br />
    public static void tearDownClass() throws Exception {<br />
    }</p>
<p>    @Before<br />
    public void setUp() {<br />
    }</p>
<p>    @After<br />
    public void tearDown() {<br />
    }</p>
<p>    @Test<br />
    public void testTryIntToString() {<br />
        System.out.println(&#8221;tryIntToString03&#8243;);<br />
       <br />
        int numLoops = 10000;</p>
<p>        String result = StringUtils.tryIntToString(numLoops);</p>
<p>        int expectedResult = 38890;<br />
       <br />
        assertEquals(expectedResult, result.length());<br />
    }<br />
}</p></blockquote>
<p> <a href="http://pronetbeans.com/archives/27#more-27" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pronetbeans.com/archives/27/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
