Solved

Java versions on Linux

Posted on 2014-10-13
4
306 Views
Last Modified: 2014-10-14
I have a RHEL 6.5 machine, and I typed in the java versions as follows

java -version
java version "1.7.0_65"
OpenJDK Runtime Environment (rhel-2.5.1.2.el6_5-x86_64 u65-b17)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)

Open in new window


So I have a 64 bit Java on a 64 bit Linux

My question is, could there be any other java versions out there currently installed

If so, how do I discover which other versions are installed

Thanks
0
Comment
Question by:Anthony Lucia
4 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 250 total points
ID: 40378418
Check the subdirectories of /usr/lib/jvm.

Additionally, run: rpm -qa | grep -i java

With /usr/sbin/alternatives --display java

you'll see all the links to the currently active version and what other alternatives are available.
0
 
LVL 37

Expert Comment

by:Gerwin Jansen
ID: 40378580
As a last resort you can search the file system:

# find / -type f -name java 2>/dev/null | xargs file | grep -v ASCII
0
 
LVL 13

Assisted Solution

by:Sandy
Sandy earned 250 total points
ID: 40379882
/usr/sbin/alternatives --display java

and in case you found multiple instances then you can choose anyone by using below

 /usr/sbin/alternatives --config java


TY/SA
0
 

Author Closing Comment

by:Anthony Lucia
ID: 40379987
The best answers were

rpm -qa | grep -i java

and

/usr/sbin/alternatives --config java
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

948 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

20 Experts available now in Live!

Get 1:1 Help Now