Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Java jdk version

Posted on 2013-01-14
2
Medium Priority
?
384 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 1000 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 1000 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

In order for businesses to be compliant with certain information security laws in some countries, you need to be able to prove that a user (which user it was becomes important to the business to take action against the user after an event has occurr…
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…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

971 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