1833875 Members
1981 Online
110063 Solutions
New Discussion

JRE

 
SOLVED
Go to solution
Joy Conner
Advisor

JRE

How can I tell what version of JRE I have? I can see /opt/java1.4 in the filesystem structure. I need to have JRE 1.4.2 or higher installed.
6 REPLIES 6
Steven E. Protter
Exalted Contributor
Solution

Re: JRE

Shalom,

swlist -l product | grep -i jre

You might also need to check for java or jdk. jdk delivers jre plus additional development capabilities.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Patrick Wallek
Honored Contributor

Re: JRE

You can also ask the java executable.

# /opt/java1.4/bin/java -version

Will tell you the version you have.

Here is the output from one of my servers:

lmstat - Copyright (C) 1989-1997 Globetrotter Software, Inc.
Flexible License Manager status on Wed 7/21/2010 11:14

License server status (License file: /usr/local/flexlm/licenses/license.dat):

hquov01: license server UP (MASTER)

Vendor daemon status (on hquov01):

HPCUPLANGS: UP
Patrick Wallek
Honored Contributor

Re: JRE

That output wasn't correct.

Here is the correct output from 'java -version':

$ /opt/java1.4/bin/java â version
java version "1.4.2.10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.10â 060112â 14:28)
Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.10â 060112â 16:07â PA_RISC2.0 PA2.0 (aCC_AP), mixed mode)
Joy Conner
Advisor

Re: JRE

I don't have a binary that says java_version.
Patrick Wallek
Honored Contributor

Re: JRE

The binary is not java_version.

The command is 'java -version', that is the word java, then a space, then '-version' (the dash, NOT the underscore).
Joy Conner
Advisor

Re: JRE

Thank you. That worked.