<?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>Misterdom's World &#187; Netbeans</title>
	<atom:link href="http://www.guinard.org/~misterdom/tag/netbeans/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.guinard.org/~misterdom</link>
	<description>My Computing Logbook</description>
	<lastBuildDate>Sat, 24 Dec 2011 09:31:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Customize the Default Username (Author) in Netbeans 6.7</title>
		<link>http://www.guinard.org/~misterdom/2009/09/02/customize-author-netbeans-6-7/</link>
		<comments>http://www.guinard.org/~misterdom/2009/09/02/customize-author-netbeans-6-7/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 08:06:19 +0000</pubDate>
		<dc:creator>misterdom</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Netbeans]]></category>
		<category><![CDATA[author]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://www.guinard.org/~misterdom/?p=95</guid>
		<description><![CDATA[Customize the Default Username (Author) in Netbeans 6.7:
- Open the netbeans.conf file
- Locate the &#8216;netbeans_default_options&#8217; property
- Add the discussed property to the list of options as &#8216;-J-Duser.name=\&#8221;Dominique Guinard\&#8221;&#8216;
Source]]></description>
			<content:encoded><![CDATA[<p>Customize the Default Username (Author) in Netbeans 6.7:<br />
- Open the netbeans.conf file<br />
- Locate the &#8216;netbeans_default_options&#8217; property<br />
- Add the discussed property to the list of options as &#8216;-J-Duser.name=\&#8221;Dominique Guinard\&#8221;&#8216;</p>
<p><a href="http://blogs.sun.com/marek/entry/using_code_templates_in_netbeans">Source</a</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guinard.org/~misterdom/2009/09/02/customize-author-netbeans-6-7/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SVN in Netbeans on &#8230; Windows</title>
		<link>http://www.guinard.org/~misterdom/2008/11/04/svn-in-netbeans-on-windows/</link>
		<comments>http://www.guinard.org/~misterdom/2008/11/04/svn-in-netbeans-on-windows/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 16:27:20 +0000</pubDate>
		<dc:creator>misterdom</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Netbeans]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[windowsvista]]></category>

		<guid isPermaLink="false">http://www.guinard.org/~misterdom/?p=41</guid>
		<description><![CDATA[While syncing with SVN in Netbeans on Linux is now trivial (a least since Netbeans 5) it is still kind of a hassle on Windows. Not so much because of Netbeans but rather because you need to find a distribution that contains the svn.exe for Windows.
Looking for a lightweight distrib of the SVN CLIENT (don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>While syncing with SVN in Netbeans on Linux is now trivial (a least since Netbeans 5) it is still kind of a hassle on Windows. Not so much because of Netbeans but rather because you need to find a distribution that contains the svn.exe for Windows.<br />
Looking for a lightweight distrib of the SVN CLIENT (don&#8217;t need the server) I found that one: <a href="http://www.sliksvn.com/en/download">http://www.sliksvn.com/en/download</a> which works pretty fine, is not too big, and does not need you to register to download it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guinard.org/~misterdom/2008/11/04/svn-in-netbeans-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Netbeans and the GWT: GWT4NB module</title>
		<link>http://www.guinard.org/~misterdom/2008/11/03/netbeans-and-the-gwt-gwt4nb-module/</link>
		<comments>http://www.guinard.org/~misterdom/2008/11/03/netbeans-and-the-gwt-gwt4nb-module/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 17:08:02 +0000</pubDate>
		<dc:creator>misterdom</dc:creator>
				<category><![CDATA[Dev Logbook]]></category>
		<category><![CDATA[Google Web Toolkit (GWT)]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Netbeans]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[gwt]]></category>

		<guid isPermaLink="false">http://www.guinard.org/~misterdom/?p=35</guid>
		<description><![CDATA[A few days ago I started experimenting with the Google Web Toolkit module for the Netbeans IDE  a rather nice module that lets you develop GWT code directly in your (at least mine!) very favorite IDE. The biggest benefit is free code completion and tagets for building and debugging your application.
A few remarks thought, [...]]]></description>
			<content:encoded><![CDATA[<p>A few days ago I started experimenting with the <a href="https://gwt4nb.dev.java.net/">Google Web Toolkit module for the Netbeans IDE </a> a rather nice module that lets you develop GWT code directly in your (at least mine!) very favorite IDE. The biggest benefit is free code completion and tagets for building and debugging your application.</p>
<p>A few remarks thought, when trying to integrate the awesome <a href="http://code.google.com/p/ofcgwt/">OFCGWT chart library</a> in my application I had to face two problems.</p>
<p>First of all the <a href="http://www.netbeans.org/kb/60/web/quickstart-webapps-gwt.html">GWT4NB tutorial </a>on Netbeans.org says you should use the 1.4 java compiler because the GWT does not support Java EE 1.5. Well I&#8217;m pretty sure the GWT does not offer support for EJBs and the like (because it has nothing to do with the backend, it&#8217;s a UI toolkit!) but it does support Java SE 6 constructs. Thus, if you do select Java EE 1.4 when first creating your project be sure to then change the source/binary version to 1.6 in the project properties.</p>
<p>As an example I could not compile the OFCGWT example without it.</p>
<p>The next thing to be aware of is that the GWT4NB module does not fully comply with the URL assigned to your application by the GWT, when a typical application URL would look like (in GWT):</p>
<p><a rel="nofollow" href="http://localhost:8080/UWTest/org.test.Main" target="_blank">http://localhost:8080/UWTest/org.test.Main</a></p>
<p>Netbeans with the GWT4NB plugin exposes it as:</p>
<p><a rel="nofollow" href="http://localhost:8080/UWTest/" target="_blank">http://localhost:8080/UWTest/</a></p>
<p>That basically means the entry point .html file is not located in org.test.Main in the GWT4NB version but rather directly at the root context of your app.</p>
<p>A consequence of this is that GWT modules assuming that the compiled javascript will be loaded by a page at org.test.Main will look for files in the wrong place. Namely, in the case of OFCGWT, the .js references .swf files which it expects to be located in the same folder as where it has been loaded from.</p>
<p>Anyway, I found two workarounds for that matter:</p>
<p>1:</p>
<p>We need to override the post-compile target in our build.xml which is guaranteed<br />
never to be re-generated by the IDE:<br />
<code><br />
&lt;target name="-post-compile"&gt;<br />
&lt;property name="gwt.compiler.output.style" value="OBFUSCATED"/&gt;<br />
&lt;property name="gwt.compiler.logLevel" value="WARN"/&gt;<br />
&lt;java classpath="${javac.classpath}:${src.dir}"<br />
failonerror="true"<br />
classname="com.google.gwt.dev.GWTCompiler" fork="true"<br />
maxmemory="512m"&gt;<br />
&lt;arg value="-out"/&gt;<br />
&lt;arg path="${build.web.dir}/"/&gt;<br />
&lt;arg value="-style"/&gt;<br />
&lt;arg value="${gwt.compiler.output.style}"/&gt;<br />
&lt;arg value="-logLevel"/&gt;<br />
&lt;arg value="${gwt.compiler.logLevel}"/&gt;<br />
&lt;arg value="${gwt.module}"/&gt;<br />
&lt;/java&gt;<br />
&lt;property name="gwt.output.dir" value="${gwt.module}"/&gt;<br />
&lt;move todir="${build.web.dir}/${gwt.output.dir}"&gt;<br />
&lt;fileset dir="${build.web.dir}/${gwt.module}"/&gt;<br />
&lt;fileset dir="${build.web.dir}"&gt;<br />
&lt;include name="**/*.html"/&gt;<br />
&lt;include name="**/*.css"/&gt;<br />
&lt;/fileset&gt;<br />
&lt;/move&gt;<br />
&lt;/target&gt;</code></p>
<p>This will actually move all the .css and .html files of your web folder to the correct output dir. You then need to be sure that the correct .js file is loaded in your welcomeGWT.html file. That is: you need to remove the org.test.Main/ part.</p>
<p>When deploying Apache might not really be happy anymore since there is no html file at the root of your application anymore however, you just need to call it explicitely like:<br />
<a rel="nofollow" href="http://localhost:8080/UWTest/org.test.Main/welcomeGWT.html" target="_blank">http://localhost:8080/UWTest/org.test.Main/welcomeGWT.html</a> and that<br />
should do the trick! BUT &#8211;&gt;</p>
<p>2:</p>
<p>BUT, that said, there is a much simpler way of getting rid of that problem: In gwt.properties change the line gwt.output.dir to gwt.output.dir=/<br />
This will deploy the GWT files (all of them, including the .html and the ofcgwt .swf files) at the root <a rel="nofollow" href="http://localhost:8080/UWTest/" target="_blank">http://localhost:8080/UWTest/</a> which then means that the .js, .swf and .html files are all located in the same folder and thus all on the same path.</p>
<p>This will actually move all the .css and .html files of your web folder to the correct output dir. You then need to be sure that the correct .js file is loaded in your welcomeGWT.html file. That is: you need to remove the org.test.Main/ part.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guinard.org/~misterdom/2008/11/03/netbeans-and-the-gwt-gwt4nb-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

