installed java version ?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting installed java version ?
# 1  
Old 06-19-2012
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.
# 2  
Old 06-19-2012
Hi.

Code:
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
# 3  
Old 06-20-2012
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.
# 4  
Old 06-20-2012
Hi.

On my system (as noted earlier):
Code:
% which java
/usr/bin/java

so one would need /usr/bin in one's PATH, as in for root:
Code:
# 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:
Code:
% ls -l /usr/bin/java
lrwxrwxrwx   1 root     other         16 Mar  1  2009 /usr/bin/java -> ../java/bin/java*

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

Best wishes ... cheers, drl
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Bash find version of an installed application but if none is found set variable to App Not Installed

Hello Forum, I'm issuing a one line bash command to look for the version of an installed application and saving the result to a variable like so: APP=application --version But if the application is not installed I want to return to my variable that the Application is not installed. So I'm... (2 Replies)
Discussion started by: greavette
2 Replies

2. Solaris

Check that supersede of package version is installed

I need a programmatic way to check, that supersede of required package is installed. At Linux I do it using rpmvercm utility to compare installed package version to my minimal requirement. So - I need analog of Linux "rpmvercm" utility for Solaris (10/11) Let us say - I know that minimal version... (10 Replies)
Discussion started by: zuismanm
10 Replies

3. Shell Programming and Scripting

How to see java installed directory ? Please help me

Hi All, I am using SunOS 5.8 and KSH shell. My problem is , I can't find my java installed directory. Java is running from /usr/bin folder but I think there java is the link to actual java directory. Also nothin is set to $JAVA_HOME env variable. How to see the actual program location pointed by... (1 Reply)
Discussion started by: Sooraj_Linux
1 Replies

4. UNIX for Advanced & Expert Users

Advanced Search * View * Edit JAVA version to WORK in GLASSFISH Forum topic JAVA version

Would like to confirm the ff. I got confused actually with the version I needed to download that will work on glassfish 3.0.1 a. Debian Squeeze (HP DL360). Need to use java version6 On Debian, I did apt-get install sun-java6-jdk. So when I check it's java version "1.6.0_22" Java(TM) SE... (1 Reply)
Discussion started by: lhareigh890
1 Replies

5. Red Hat

How to verify the current NIC driver version installed in RHEL5.3??

Guys, Can you help me how to verify the current installed NIC driver version in RHEL5.3? Thanks.:D (1 Reply)
Discussion started by: shtobias
1 Replies

6. Shell Programming and Scripting

newer version of the parser installed,yet get the older one itlself,hows it possible?

Hi all, I downloaded a XML parser lib from blastwave.org... Its the "libxml2",but i am having trouble initializing it(or so it feels)...I kind of need it badly as the OSE version of the virtualbox 1.6.2 will not install unless i have one The version was 2.6.3... The min requirement from... (0 Replies)
Discussion started by: wrapster
0 Replies

7. Solaris

Setting link to newly installed Java version

Hi, I have Solaris 8 wih Java 1.2.2 as default. I just upgraded it to Java 2 version 1.4. But when I do "java -version: I get following: "Java version "1.2.2" Solaris VM (build Solaris_JDK_1.2.2_05a, native threads, sunjwit) How would I make solaris to look at my new java? If I have to... (4 Replies)
Discussion started by: harjitsingh
4 Replies

8. Shell Programming and Scripting

Which version of perl is installed on my system?

Hi, With the command perl -v i can see the perl version, but it's like a text file.. is there a command which could give me just the perl version number? i.e.: "5.8.1" thanks!! (6 Replies)
Discussion started by: kfad
6 Replies

9. UNIX for Advanced & Expert Users

How to Find the OS version Installed

Hi, I wanted to know how can I get the version of underlying HP-OS installed on a HPUX workstation. The output required is "June 2001" version or "March 2003" version etc whatever OS is present. Thanx in advance for your help. Regards, Pankaj (3 Replies)
Discussion started by: pankschawla
3 Replies
Login or Register to Ask a Question