Solved

Linux, multiple versions of java

Posted on 2013-12-04
2
369 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
php ssh2_scp_send 1 61
Recommendations for Web-Based Multi-User File Manager / FTP software? 4 93
Coding C# in Linux 8 68
SonarQube on Linux vs Windows 3 27
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Fine Tune your automatic Updates for Ubuntu / Debian
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 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