using update-alternatives to add additional java versions to /etc/alternatives

code-complete

Friday, May 2. 2008

using update-alternatives to add additional java versions to /etc/alternatives

After realizing I need to use Sun's JVM globally in order to get Flex Builder A3 working under my Fedora 8 install I decided to investigate further how to get it to be an option in the system-switch-java applet. That applet is tuned in to the update-alternatives command. by running the following commands as root, the system was able to switch between the 3 different JVMs I've got installed:


# update-alternatives --install "/usr/bin/java" "java"
"/usr/java/default/bin/java" 3
# update-alternatives --install "/usr/bin/javac" "javac"
"/usr/java/default/bin/javac" 3
# update-alternatives --install "/usr/bin/javaws" "javaws"
"/usr/java/default/bin/javaws" 3


Now I can change JVMs globally using update-alternatives --config java command!

Posted by thaddeus in Java, Redhat Linux at 13:38 | Comment (1) | Trackbacks (0)

Trackbacks
Trackback specific URI for this entry

No Trackbacks

Comments
Display comments as (Linear | Threaded)

Really helpful.
#1 Annon on 2008-12-31 17:09 (Reply)

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

 
Submitted comments will be subject to moderation before being displayed.
 

About Me

Thaddeus Wakefield Batt
Thaddeus Wakefield Batt

blogging from: denver, co.

blogging about: web technologies

Links

Tech Blogs
Fullasagoog - RIA
John Wilker
William .NET
Graphex

Links
SpireMedia, Inc.
The CMS Matrix




Lijit Search

Archives

  • September 2010
  • August 2010
  • July 2010
  • Recent...
  • Older...

Categories

  • XML .NET
  • XML Apollo
  • XML Coldfusion Programming
  • XML Coldfusion Server
  • XML Flex
  • XML Information Architecture
  • XML Java
  • XML Livecycle
  • XML postgreSQL
  • XML Redhat Linux
  • XML Silverlight
  • XML SpireMedia
  • XML SQL Server 2k5
  • XML Tools of the Trade
  • XML Vista
  • XML Win2K3 Server
  • XML Windows Server 2008
  • XML Zimbra


All categories

Syndicate This Blog

  • XML RSS 0.91 feed
  • XML RSS 1.0 feed
  • XML RSS 2.0 feed
  • ATOM/XML ATOM 0.3 feed
  • ATOM/XML ATOM 1.0 feed
  • XML RSS 2.0 Comments

Blog Administration

Open login screen

Thaddeus Batt

Creative Commons License - Some Rights Reserved
Original content in this work is licensed under a Creative Commons License