<?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/"
		xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Rambling of a .COM Fanatic &#187; Java</title>
	<atom:link href="http://www.vikrammohan.com/blog/category/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vikrammohan.com/blog</link>
	<description></description>
	<lastBuildDate>Thu, 20 Oct 2011 06:57:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<copyright>Copyright &#xA9; Rambling of a .COM Fanatic 2010 </copyright>
	<managingEditor>mrbillcollector@gmail.com (Rambling of a .COM Fanatic)</managingEditor>
	<webMaster>mrbillcollector@gmail.com (Rambling of a .COM Fanatic)</webMaster>
	<image>
		<url>http://www.vikrammohan.com/blog/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
		<title>Rambling of a .COM Fanatic</title>
		<link>http://www.vikrammohan.com/blog</link>
		<width>144</width>
		<height>144</height>
	</image>
	<itunes:subtitle></itunes:subtitle>
	<itunes:summary></itunes:summary>
	<itunes:keywords></itunes:keywords>
	<itunes:category text="Society &#38; Culture" />
	<itunes:author>Rambling of a .COM Fanatic</itunes:author>
	<itunes:owner>
		<itunes:name>Rambling of a .COM Fanatic</itunes:name>
		<itunes:email>mrbillcollector@gmail.com</itunes:email>
	</itunes:owner>
	<itunes:block>no</itunes:block>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://www.vikrammohan.com/blog/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<item>
		<title>How To Make Java Swing work on Beryl with AIGLX</title>
		<link>http://www.vikrammohan.com/blog/2006/12/31/how-to-make-java-swing-work-on-beryl-with-aiglx/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-make-java-swing-work-on-beryl-with-aiglx</link>
		<comments>http://www.vikrammohan.com/blog/2006/12/31/how-to-make-java-swing-work-on-beryl-with-aiglx/#comments</comments>
		<pubDate>Sun, 31 Dec 2006 00:01:23 +0000</pubDate>
		<dc:creator>Vikram Mohan</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.vikrammohan.com/blog/2006/12/31/how-to-make-java-swing-work-on-beryl-with-aiglx/</guid>
		<description><![CDATA[Well considering the beryl project has no way as of yet to display Swing widgets (combo boxes, drop down menus etc.) display themselves using Sun&#8217;s JDK alternate means have to be made use of, so that Java applications can be executed. Currently the problem seems to lie with Sun&#8217;s implementation of Swing and often the [...]]]></description>
			<content:encoded><![CDATA[<p>Well considering the beryl project has no way as of yet to display Swing widgets (combo boxes, drop down menus etc.) display themselves using Sun&#8217;s JDK alternate means have to be made use of, so that Java applications can be executed.</p>
<p>Currently the problem seems to lie with Sun&#8217;s implementation of Swing and often the problem can be circumvented by utilizing another JDK such blackdown. This can be done in gentoo by doing,</p>
<blockquote><p># emerge -va dev-java/blackdown-jdk</p>
<p># eselect java-vm list</p>
<p>Available Java Virtual Machines:<br />
[1]   blackdown-jdk-1.4.2<br />
[2]   sun-jdk-1.5<br />
$ eselect java-vm set user 1</p></blockquote>
<p>Note # represents the root prompt and $ the user prompt. If you wish to set system java-vm you must execute as root (#). The numbers shown above might vary and should be adjusted accordingly.</p>
<p>This solution has a problem&#8230; the blackdown JDK is only a 1.4.2 implementation (as of the time of this post) and Java 1.5.0 based applications will not execute. This can potentially be solved by utilizing another open source Java 5 implementation such as dev-java/ibm-jdk-bin (not tested yet).</p>
<p>Another <strong>sure shot way</strong> of solving this is to utilize a nested X server. The manner in which this works is to launch another X server inside our current one, except this time the nested X server does not have Beryl running inside it and hence does not face the problem we are currently encountering.</p>
<p>Initially a nested X server must be created. This can be done by,</p>
<blockquote><p>$ screen Xnest :[display number] -ac -geometry</p></blockquote>
<p>[display number] represents the number we assign to the X server instance and  represents the resolution. Eg. to created a nested X server with a display number of 1 and of resolution 1440&#215;900 we would use,</p>
<blockquote><p>$ screen Xnest :1 -ac -geometry 1440&#215;900</p></blockquote>
<p>Now that the X server is created in a screen session we detatch from it by pressing the key combination control+alt+a. If you do not have screen you can merely launch it in a console window using the same command without adding the screen prefix.</p>
<p>Every application that is to be launched within the X server must now be told of the display number assigned to it. An application can be started in the nested X server by,</p>
<blockquote><p>$ DISPLAY=:[display number] [path to app]</p></blockquote>
<p>The [display number]  is the display number we assigned to the nested X server previously and [path to app] is the path to the application we wish to execute in the nested X server. Eg.  To execute the application frostwire (located at /usr/bin/frostwire) on a nested X server running on DISPLAY 1 we use the command,</p>
<blockquote><p>$ DISPLAY=:1 /usr/bin/frostwire</p></blockquote>
<p>This application can be executed in the background by using a screen command as shown previously.</p>
<p>Good luck and hope the Beryl team works on compatibility so this hassle has to no longer be encountered.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-4548516037207344";
google_alternate_ad_url = "http://www.digg.com";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
//2006-10-11: VikramMohan.com Blog
google_ad_channel ="0143346554";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vikrammohan.com/blog/2006/12/31/how-to-make-java-swing-work-on-beryl-with-aiglx/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

