<?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; Java</title>
	<atom:link href="http://www.gaanza.com/blog/tag/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gaanza.com</link>
	<description></description>
	<lastBuildDate>Tue, 03 Jan 2012 10:09:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Installing or Setting up JOGL on Ubuntu</title>
		<link>http://www.gaanza.com/blog/setting-up-jogl-in-ubuntu/</link>
		<comments>http://www.gaanza.com/blog/setting-up-jogl-in-ubuntu/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 03:50:38 +0000</pubDate>
		<dc:creator>padam</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[jogl]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.gaanza.com/blog/?p=118</guid>
		<description><![CDATA[Here are the detailed steps to set up or install JOGL on your ubuntu. First of all you have to download the jogl library(according to your machine) from here . I am using Ubuntu 8.04 on intel board so i downloaded jogl-1.1.1-linux-i586.zip. So extract the zip file. Now open the folder that you have just [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-143" title="gl_java_ubuntu1" src="http://www.gaanza.com/wp-content/uploads/2009/06/gl_java_ubuntu1.png" alt="gl_java_ubuntu1" width="500" height="150" /></p>
<p>Here are the detailed steps to set up or install JOGL on your ubuntu. First of all you have to <a href="https://jogl.dev.java.net/servlets/ProjectDocumentList?folderID=9260&amp;expandFolder=9260&amp;folderID=0" target="_self">download</a> the jogl library(according to your machine) from <a href="https://jogl.dev.java.net/servlets/ProjectDocumentList?folderID=9260&amp;expandFolder=9260&amp;folderID=0" target="_blank">here</a> . I am using Ubuntu 8.04 on intel board so i downloaded jogl-1.1.1-linux-i586.zip.</p>
<p>So extract the zip file. Now open the folder that you have just now extracted. Go to lib folder.</p>
<p><strong>STEP 1</strong>: Now you have to copy four .so files i.e libjogl.so, libjogl_awt.so, libjogl_cg.so, libgluegen-rt.so to [javainstalation directory]/jre/lib/i386</p>
<p>Open the terminal window and type: sudo cp libjogl.so /usr/lib/java/jdk1.6.0_13/jre/lib/i386</p>
<p>similarly you have to copy other three .so files.</p>
<p>*you have to provide you java installation path*</p>
<p><img class="alignnone size-full wp-image-120" title="jogl1" src="http://www.gaanza.com/wp-content/uploads/2009/06/jogl1.png" alt="jogl1" width="659" height="125" /></p>
<p>Now you can check the destination if files has been copied.</p>
<p><img class="alignnone size-full wp-image-122" title="jogl21" src="http://www.gaanza.com/wp-content/uploads/2009/06/jogl21.png" alt="jogl21" width="572" height="458" /></p>
<p><strong>STEP 2:</strong> Now copy jogl.jar and gluegen-rt.jar to [java installation di]/jre/lib/ext</p>
<p>run this command to copy: sudo cp jogl.jar /usr/lib/java/jdk1.6.0_13/jre/lib/ext</p>
<p>simillarly copy gluegen-rt.jar</p>
<p>*you have to provide your java installation path*</p>
<p><img class="alignnone size-full wp-image-123" title="jogl3" src="http://www.gaanza.com/wp-content/uploads/2009/06/jogl3.png" alt="jogl3" width="593" height="196" /></p>
<p>You can check:</p>
<p><img class="alignnone size-full wp-image-124" title="jogl4" src="http://www.gaanza.com/wp-content/uploads/2009/06/jogl4.png" alt="jogl4" width="566" height="326" /></p>
<p><strong>STEP 3</strong>: SO thats it. Now lets test the simple jogl code.</p>
<p><em>import javax.media.opengl.GLCapabilities;</em></p>
<p><em>public class Hello{<br />
public static void main (String args[]) {<br />
try {<br />
System.loadLibrary(&#8220;jogl&#8221;);<br />
System.out.println(<br />
&#8220;Hello World! (The native libraries are installed.)&#8221;<br />
);<br />
GLCapabilities caps = new GLCapabilities();<br />
System.out.println(<br />
&#8220;Hello JOGL! (The jar appears to be available.)&#8221;<br />
);<br />
} catch (Exception e) {<br />
System.out.println(e);<br />
}<br />
}<br />
} </em></p>
<p>Now compile this Hello.java and the run it. Here is the output:</p>
<p><img class="alignnone size-full wp-image-125" title="jogl-final" src="http://www.gaanza.com/wp-content/uploads/2009/06/jogl-final.png" alt="jogl-final" width="529" height="125" /></p>
<p>So thats it. Now your are off to fly and write your jogl apps.</p>
<p><strong>Thanks.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gaanza.com/blog/setting-up-jogl-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

