<?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>cat brain.stuff &#62; wordpress &#187; java config update-alternatives</title>
	<atom:link href="http://famvdploeg.com/blog/tag/java-config-update-alternatives/feed/" rel="self" type="application/rss+xml" />
	<link>http://famvdploeg.com/blog</link>
	<description>A simple look on things</description>
	<lastBuildDate>Wed, 21 Mar 2012 19:47:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Update-alternatives</title>
		<link>http://famvdploeg.com/blog/2009/03/update-alternatives/</link>
		<comments>http://famvdploeg.com/blog/2009/03/update-alternatives/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 13:08:10 +0000</pubDate>
		<dc:creator>Wytze</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[java config update-alternatives]]></category>

		<guid isPermaLink="false">http://famvdploeg.com/blog/?p=91</guid>
		<description><![CDATA[Having multiple jvm&#8217;s on your linux machine can be a pain in the ass. To select which jvm to use you can use the update-alternatives command. A small example of how to add a jvm to the alternatives here: update-alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_11/bin/java 16011 This will add an entry for your jdk into the [...]]]></description>
			<content:encoded><![CDATA[<p>Having multiple jvm&#8217;s on your linux machine can be a pain in the ass. To select which jvm to use you can use the update-alternatives command. A small example of how to add a jvm to the alternatives here:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">update-alternatives <span style="color: #660033;">--install</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>java java <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>java<span style="color: #000000; font-weight: bold;">/</span>jdk1.6.0_11<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>java <span style="color: #000000;">16011</span></pre></div></div>

<p>This will add an entry for your jdk into the alternatives. The last number assigns the priority to this alternative. Which is the version and build number of the relase.</p>
<p>After adding you can use the following command to select the java version you want to use:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">update-alternatives <span style="color: #660033;">--config</span> java</pre></div></div>

<p>If you switch the java update-alternatives to auto it will automatically pick the java alternative with the highest priority.</p>
]]></content:encoded>
			<wfw:commentRss>http://famvdploeg.com/blog/2009/03/update-alternatives/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

