Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Linux, multiple versions of java

Posted on 2013-12-04
2
Medium Priority
?
376 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

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 …
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

688 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