Solved

Java jdk version

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

759 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

22 Experts available now in Live!

Get 1:1 Help Now