Solved

Java jdk version

Posted on 2013-01-14
2
382 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

630 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