Solved

Linux, multiple versions of java

Posted on 2013-12-04
2
371 Views
Last Modified: 2013-12-04
I am using RHEL  6.4

If I have multiple versions of java, and I want to make one of the versions that is not the currentl primary version to become the new primary version, is there an easy way to perform this ?

Thanks
0
Comment
Question by:Los Angeles1
2 Comments
 

Author Comment

by:Los Angeles1
ID: 39696518
Looks like I can do this with the alternatives command, are there any other ways to do this?
0
 
LVL 19

Accepted Solution

by:
xterm earned 500 total points
ID: 39696557
cd /etc/alternatives
ln -sf /path/to/your/new/java/location/bin/java java


That will create a symbolic link to the location of your new java and remove the old one.

You can find out where the the location is by doing "rpm -ql <java package name>" which will list all the files in the RPM.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question