Solved

Linux, multiple versions of java

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

751 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