- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to find the running java version
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2011 02:04 AM
тАО02-07-2011 02:04 AM
how to find the running java version
$cd /opt
$ls
output --java 1.3,java 1.4
how to find the which java version running in server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2011 02:15 AM
тАО02-07-2011 02:15 AM
Re: how to find the running java version
find /opt/java* -name java -type f -exec fuser {} \;
Would show any processes that have the java executable open right now.
Of course that doesn't mean that something might not start at another point in time and use the other java version...
What are you trying to acheive here?
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2011 03:56 AM
тАО02-07-2011 03:56 AM
Re: how to find the running java version
For example;
swlist -l product | grep -i java
swlist -l product | grep -i your_application
and sometimes it is already in your environment like my DataProtector 6.11 ;
# set |grep -i java
DP_JAVA_DIR=/opt/java6/jre/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2011 04:03 AM
тАО02-07-2011 04:03 AM
Re: how to find the running java version
# java -version
every java install will create a new directory
under /opt/.. ,
you can see which java to check the current path settings.
Thanks
Manix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2011 07:49 AM
тАО02-07-2011 07:49 AM
Re: how to find the running java version
You would need to fuly qualify your question. But if your situation is such that you have "java" processes running (via ps or top or glance) AND you are wondering what version(s) of java those are - then let us know.
On any UNIX/Linux OS these days.. there could be several versions of Java running - either bundled with the OS or installed along with other software kits like Oracle, your SAN agents, performancwe collectors, etc.
Generally what I do is to use "lsof" to seek out from what path/directory the runing java process point to. Then use "java -version" on the path to find out the version.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2017 12:53 AM
тАО02-02-2017 12:53 AM
Re: how to find the running java version
From the root directory, goto below path
/opt/java6/bin
Note** java6 is my version. It may be same or different based on the java version you have installed
From here, run the below command.
# ./java -version
You can find the similar output as given below.
Output:
Java(TM) SE Runtime Environment (build 1.6.0.06-jinteg_20_jan_2010_05_50-b00)
Java HotSpot(TM) Server VM (build 14.3-b01-jre1.6.0.06-rc1, mixed mode)