installed java version ?

Hi,
I want to know what version of the java is installed?
Please let me know the command or process to identify the installed java version in sun solaris box.
Thanks in advance for all your support.

Hi.

OS, ker|rel, machine: SunOS, 5.10, i86pc
Distribution        : Solaris 10 10/08 s10x_u6wos_07b X86

% java -h
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)

where options include:
    -d32          use a 32-bit data model if available
...

% java -version
java version "1.5.0_16"
Java(TM) Platform, Standard Edition for Business (build 1.5.0_16-b02)
Java HotSpot(TM) Client VM (build 1.5.0_16-b02, mixed mode, sharing)

cheers, drl

Thank you for your information .
when i am doing , i got the following errors
1) /dstage_root/dsadm> java -version
ksh: java: not found
2) /dstage_root/dsadm> java -h
ksh: java: not found

our server :
SunOS gef18-app-d-vs01 5.10 Generic_144488-04 sun4v sparc SUNW,Sun-Fire-T200.
Please let know the command to fiind installed jave version in solaris server.

Hi.

On my system (as noted earlier):

% which java
/usr/bin/java

so one would need /usr/bin in one's PATH, as in for root:

# echo $PATH
/usr/sbin:/usr/bin

and, of course, java needs to have been installed.

The file in /usr/bin is really a symbolic link to a file in a different directory:

% ls -l /usr/bin/java
lrwxrwxrwx   1 root     other         16 Mar  1  2009 /usr/bin/java -> ../java/bin/java*

and then:

% ls -lL /usr/bin/java
-rwxr-xr-x   1 root     bin        64252 May 28  2008 /usr/bin/java*

Best wishes ... cheers, drl