Solved

Java jdk version

Posted on 2013-01-14
2
379 Views
Last Modified: 2013-02-09
Hello all,

Im unsure of which java jdk version my machine is using due to the following output:

[root@capote init.d]# java -version
java version "1.5.0_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
Java HotSpot(TM) Server VM (build 1.5.0_05-b05, mixed mode)
[root@capote init.d]#
[root@capote init.d]#
[root@capote init.d]#
[root@capote init.d]#
[root@capote init.d]# echo $JAVA_HOME
/usr/java/jdk1.6.0_21

Can someone please tell me why there are 2 different versions displayed here?

Thanks
0
Comment
Question by:oggiemc
[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
 
LVL 19

Accepted Solution

by:
lamaslany earned 250 total points
ID: 38775299
Simply put: it seems that you have multiple versions of Java installed.  

A very nice overview of JRE on Linux can be found here: http://ice.he.net/~hedden/jrelinux.html (at least I found it useful!)
0
 
LVL 62

Assisted Solution

by:gheist
gheist earned 250 total points
ID: 38785251
find / -type f -name java

will show you all of them installed.

"which java" - one that you run by a simple command
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Users are often faced with high disk consumption without really knowing where the largest amount of data resides. Disk Usage Analyzer (aka Baobab) is is a graphical, menu-driven application to analyse disk usage in any Gnome environment and can e…
This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

756 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