Solved

Linux, multiple versions of java

Posted on 2013-12-04
2
367 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
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now