Solved

Java jdk version

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Creating a Samba server for a small office. Ubuntu Linux and Samba can breathe new life into a retired PC and save an office money on new hardware/software. Our example server will have two hard disks, one exclusively for storing shared data. …
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

776 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