<?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>GaanZa &#187; Tools</title>
	<atom:link href="http://www.gaanza.com/blog/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gaanza.com</link>
	<description></description>
	<lastBuildDate>Sat, 04 Sep 2010 07:55:44 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Setting Up LWJGL with Netbeans</title>
		<link>http://www.gaanza.com/blog/setting-up-lwjgl-with-netbeans/</link>
		<comments>http://www.gaanza.com/blog/setting-up-lwjgl-with-netbeans/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 04:41:05 +0000</pubDate>
		<dc:creator>padam</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[opengl]]></category>
		<category><![CDATA[lwjgl]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[setting up lwjgl with netbeans]]></category>

		<guid isPermaLink="false">http://www.gaanza.com/blog/?p=285</guid>
		<description><![CDATA[
On Forums, people keeps asking about setting up lwjgl library with netbeans. So here i am going to show the steps to do that.
STEP 1: Go to Tools-&#62; Libariries.Now create new library. Give it a name say &#8220;lwjgl21&#8243;.

STEP 2: Now we have to configure the library. Click the classpath tab, then click add jars, and [...]]]></description>
			<content:encoded><![CDATA[<div class="fblike_button" style="margin: 10px 0;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.gaanza.com%2Fblog%2Fsetting-up-lwjgl-with-netbeans%2F&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px"></iframe></div>
<p>On Forums, people keeps asking about setting up lwjgl library with netbeans. So here i am going to show the steps to do that.</p>
<p><strong>STEP 1: </strong>Go to Tools-&gt; Libariries.Now create new library. Give it a name say &#8220;lwjgl21&#8243;.</p>
<p><img class="alignnone size-full wp-image-286" title="step1" src="http://www.gaanza.com/wp-content/uploads/2009/09/step1.png" alt="step1" width="535" height="213" /></p>
<p><strong>STEP 2:</strong> Now we have to configure the library. Click the classpath tab, then click add jars, and add all the jars shown below:</p>
<p><img class="alignnone size-full wp-image-287" title="step2" src="http://www.gaanza.com/wp-content/uploads/2009/09/step2.png" alt="step2" width="534" height="406" /></p>
<p><strong>STEP 3:</strong> If u want to add java doc than click the javadoc tab, and then add the javadoc folder. Then finally click oK and lwjgl21 library that we have just created is done.</p>
<p><strong>STEP 4:</strong> Now create a empty java project.</p>
<p><img class="alignnone size-full wp-image-288" title="step3" src="http://www.gaanza.com/wp-content/uploads/2009/09/step3.png" alt="step3" width="305" height="144" /></p>
<p><strong>STEP 5:</strong> Now we have to set the properties so that our newly created project can find the lwjgl library and jar files. So Right-Click the project-&gt; Properties. Now check the image carefully and configure accordingly. So first select libraries on the categories section and then click compile tab, and then add jar file for compilation step. This step is very important so check image properly below.</p>
<p><img class="alignnone size-full wp-image-289" title="step4" src="http://www.gaanza.com/wp-content/uploads/2009/09/step4.png" alt="step4" width="578" height="189" /></p>
<p><strong>STEP 6:</strong> Okie now click run tab, and add the library that we had just created. Check the image very properly.</p>
<p><img class="alignnone size-full wp-image-294" title="step5" src="http://www.gaanza.com/wp-content/uploads/2009/09/step51.png" alt="step5" width="548" height="177" /></p>
<p><strong>STEP 7:</strong> Now the final step. We have to provide the argument so that project cud find the necessary dll files. So first select the Run at caregories section then go to vm-options. Check the image properly and follow.</p>
<p><img class="alignnone size-full wp-image-291" title="step6" src="http://www.gaanza.com/wp-content/uploads/2009/09/step6.png" alt="step6" width="565" height="207" /></p>
<p>Okie thats it. Now click ok. So you have just set up lwjgl with your netbeans ide. So now you can compile and run your lwjgl app. I am using netbeans ide 6.7.</p>
<p><strong>Gracias</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gaanza.com/blog/setting-up-lwjgl-with-netbeans/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to make a exe file of Java Program ?</title>
		<link>http://www.gaanza.com/blog/how-to-make-a-exe-file-for-java-program/</link>
		<comments>http://www.gaanza.com/blog/how-to-make-a-exe-file-for-java-program/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 15:50:15 +0000</pubDate>
		<dc:creator>padam</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[.exe file of java]]></category>
		<category><![CDATA[exe4j]]></category>
		<category><![CDATA[java exe maker]]></category>
		<category><![CDATA[making an exe for java app]]></category>

		<guid isPermaLink="false">http://www.gaanza.com/blog/?p=61</guid>
		<description><![CDATA[
If you are making a java program for windows operating system only then  wouldn&#8217;t it be easy to have a exe file for your java program and distribute it to the users and user would find easy to execute your program. Well i guess yes because exe would definetly make easy for users to execute [...]]]></description>
			<content:encoded><![CDATA[<div class="fblike_button" style="margin: 10px 0;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.gaanza.com%2Fblog%2Fhow-to-make-a-exe-file-for-java-program%2F&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px"></iframe></div>
<p>If you are making a java program for windows operating system only then  wouldn&#8217;t it be easy to have a exe file for your java program and distribute it to the users and user would find easy to execute your program. Well i guess yes because exe would definetly make easy for users to execute your java programs. So:</p>
<p>Q. How to make an exe file for your java program ?</p>
<p>A. exe4J.</p>
<p>exe4j is a Java exe maker that helps you integrate your Java applications into             the Windows operating environment, whether they are service, GUI or command line             applications. If you want your own process name instead of             java.exe in the task manager and a user friendly task-bar grouping in Windows XP,             exe4j does the job. exe4j helps you with starting your Java applications in a             safe way, displaying native splash screens, detecting or distributing suitable             JREs and JDKs, startup error handling and much more.</p>
<p>Check out the <a href="http://www.ej-technologies.com/products/exe4j/features.html" target="_blank">features</a> of exe4J. <a href="http://www.ej-technologies.com/download/exe4j/files.html" target="_blank">Download</a>(i would suggest you to download zip archive) the exe4J from <a href="http://www.ej-technologies.com/download/exe4j/files.html" target="_blank">here</a>.</p>
<p>Ok now i&#8217;ll show you the steps to use exe4J for making exe. So download the exe4J zip archive and extract it to your preference location. Here i&#8217;ll be showing you how to create exe file for your java executable jar file. So lets first write a simple swing frame application which will just create a frame.</p>
<p><em>import javax.swing.*;</em></p>
<p><em>public class Test<br />
{<br />
public Test(){<br />
JFrame frame=new JFrame(&#8220;test&#8221;);<br />
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);<br />
frame.setSize(400,300);<br />
frame.setVisible(true);<br />
}<br />
public static void main(String[] args){<br />
new Test();<br />
}<br />
}</em></p>
<p>Ok save Test.java it in some folder ( I have saved it in E:/java_programs).</p>
<p>Now open your  command prompt, navigate to the folder where Test.java file is saved and compile the Test.java using command javac Test.java</p>
<p>Now we&#8217;ll create a manifest file which will be needed to make an executable jar file. So this is the way you write your manifest file:</p>
<p>Main-Class: Test</p>
<p>First line on your manifest file will be Main-Class:&lt;space&gt;main-class(class file with the main method). then new line&lt;enter&gt;. You have to provide one new line after first line. Then save it as manifest.txt to the same folder where your Test.class file is saved.</p>
<p>Now we&#8217;ll create the executable jar file. Syntax is:  jar -cvmf manifest.txt &lt;name of jar file that you will create&gt; class file/package if used</p>
<p>so open up your command prompt, navigate to the folder where Test.class file and manifest file is saved. Then enter command jar -cvmf manifest.txt test.jar Test.class and press enter. Yout executable jar file is created. You can check and test it(java -jar test.jar).</p>
<p>Now executable jar file is ready. So now i&#8217;ll show you the steps to make exe from your executable jar file.</p>
<p><strong>STEP 1:</strong> Open the folder that u had extracted. Go to bin folder. Double click exe4j launcher. Now exe4j window will open up. Click next.</p>
<p><img class="alignnone size-full wp-image-62" title="1" src="http://www.gaanza.com/wp-content/uploads/2009/06/1.png" alt="1" width="565" height="417" /></p>
<p><strong>STEP 2:</strong> Choose &#8220;JAR in EXE&#8221; mode. Click next.</p>
<p><img class="alignnone size-full wp-image-63" title="2" src="http://www.gaanza.com/wp-content/uploads/2009/06/2.png" alt="2" width="559" height="415" /></p>
<p><strong>STEP 3:</strong> Now give the name for your application. I have given &#8220;app&#8221;. Then give the path of the location where you want to save the exe file. I have given the path of location where my class, manifest and jar file are located i.e E:/java_programs. Click next.</p>
<p><img class="alignnone size-full wp-image-64" title="3" src="http://www.gaanza.com/wp-content/uploads/2009/06/3.png" alt="3" width="559" height="417" /></p>
<p><strong>STEP 4:</strong> Now choose your executable type from list of radio buttons. In our case we will choose GUI application. Then give the name of exe file that we are making.  I have provided test. Now check the boxes as shown in the screenshot. And Click next.</p>
<p><img class="alignnone size-full wp-image-65" title="4" src="http://www.gaanza.com/wp-content/uploads/2009/06/4.png" alt="4" width="558" height="414" /></p>
<p><strong>STEP 5:</strong> Now give the name of your main class. In our case its Test. Don&#8217;t put the .class extension, just give the name. Now don&#8217;t click next.</p>
<p><img class="alignnone size-full wp-image-66" title="5" src="http://www.gaanza.com/wp-content/uploads/2009/06/5.png" alt="5" width="559" height="413" /></p>
<p><strong>STEP 6:</strong> You can see the the gree plus button on above screenshot. Click that and a window will open up. Check the archive radio button above.Now we have to provide the executable jar file to the Archive, so browse the location where your executable jar file is saved. Add it. Click OK. Click next.</p>
<p><img class="alignnone size-full wp-image-67" title="6" src="http://www.gaanza.com/wp-content/uploads/2009/06/6.png" alt="6" width="558" height="432" /></p>
<p><strong>STEP 7:</strong> Now we have to configure the JRE. So provide the minimum jre version and maximum jre version to be used by the user. Then click next.</p>
<p><img class="alignnone size-full wp-image-68" title="7" src="http://www.gaanza.com/wp-content/uploads/2009/06/7.png" alt="7" width="558" height="412" /></p>
<p><strong>STEP 8:</strong> Now we have to configure splash screen (if you want to). I haven&#8217;t provided splash screen so i have chosed no splash screen. You can give your choice. Click next.</p>
<p><img class="alignnone size-full wp-image-69" title="8" src="http://www.gaanza.com/wp-content/uploads/2009/06/8.png" alt="8" width="555" height="411" /></p>
<p><strong>STEP 9:</strong> Now we have to configure messages like if you want to give error message when user does not have JRE installed in his/her machine. Click next.</p>
<p><img class="alignnone size-full wp-image-70" title="9" src="http://www.gaanza.com/wp-content/uploads/2009/06/9.png" alt="9" width="560" height="413" /></p>
<p><strong>STEP 10:</strong> Now the last step of the wizard. If you want to save the configuration then click save as. I haven&#8217;t saved the configuration so i clicked EXIT. Then it will ask me if i want to save the configuration. Click NO(if you want to save click yes). So Thats it. Done.</p>
<p><img class="alignnone size-full wp-image-71" title="10" src="http://www.gaanza.com/wp-content/uploads/2009/06/10.png" alt="10" width="556" height="413" /></p>
<p>Now navigate the output folder where u have saved the exe file. In our case we provided the same folder where our jar and class files are located. In below screenshot you can see that test.exe file has been created.</p>
<p><img class="alignnone size-full wp-image-73" title="111" src="http://www.gaanza.com/wp-content/uploads/2009/06/111.png" alt="111" width="506" height="357" /></p>
<p>Now double click test.exe and message box(&#8220;executable was created using evalustion version of exe4J&#8221;) will open. Just click ok. Then application will run. In our program we created a frame so frame will get displayed.</p>
<p><img class="alignnone size-full wp-image-74" title="13" src="http://www.gaanza.com/wp-content/uploads/2009/06/13.png" alt="13" width="508" height="377" /></p>
<p>So thats it. You are off. Your exe has been created. Now you can distribute this exe to windows user. But i f u want to make a cross-platform distributed file then this methos is not recommended. This is for only windows environment.</p>
<p><strong>Thanks.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gaanza.com/blog/how-to-make-a-exe-file-for-java-program/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
