java (java -version)

Thread Tools Search this Thread
Operating Systems Solaris java (java -version)
# 1  
Old 08-23-2011
java (java -version)

my box is a global zone with no local zones and the command java -version shows as "1.5.0_26".

now we got a requirement from the application team to install jdk1.5.0_24. Is it possible to install the version of java(jdk1.5.0_24) as requested by the application team or is it possible to create a soft link which will point to the version jdk1.5.0_24
# 2  
Old 08-23-2011
Java is using symbolic links to point to current version by default:
root@xxx # ls -l /usr/java
lrwxrwxrwx   1 root     other         15 Feb 20  2011 /usr/java -> jdk/jdk1.6.0_22

If after installation of the new version that link didn't get updated, then you can do it by yourself. In case of any problems just revert back the link to point to previous java version.
# 3  
Old 08-24-2011
Installation of java won't update symbolic link. You need to do it manually. You can have multiple versions of java simultaneously on server.

FYI, default java version installed with solaris doesn't include java development kit, it is just java runtime enviornment.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. HP-UX

Setting up new version of java

Hi, I have got jre 1.5 that I have got to install in the HP.UX version 11.31. I managed to install it with this command : # swinstall -s /tmp/<jre.XXXXX.depot> It automatically gets created in /opt/java1.5/jre/bin. However, now I am not sure how to set the PATH to JAVA_HOME, and path to... (1 Reply)
Discussion started by: anaigini45
1 Replies

2. UNIX for Dummies Questions & Answers

Switching the version of java used

Hello, I'm trying to run a program that needs java 7, but java 6 is in the default folder and I don't have permission to change the /usr/bin/java folder and change the version. I have java 7 downloaded in a different folder (~/java) and am wondering how I can use that version while running the... (1 Reply)
Discussion started by: Jautis
1 Replies

3. Shell Programming and Scripting

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. (3 Replies)
Discussion started by: sridhardwh
3 Replies

4. Solaris

Update java version in Zone

I am using a solaris zone in Sun blade-T6320 which has a java version "1.5.0_18" i want to update it to or higher , how can i do that , does i need to add the new java package to the global server or just instal it in the zone itself. do i need to remove the older version or and install... (1 Reply)
Discussion started by: Sojourner
1 Replies

5. 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

6. Solaris

Solaris 10 Java version

I have an issue here setting up ASR with a server. In order to have the SASM service runnning/enabled, the required java version is 1.6 U18(latest). My OS came with JDK 1.5 I downloaded and installed 1.6 But when I did java -version , its still showing 1.5 I captured the below from another... (4 Replies)
Discussion started by: incredible
4 Replies

7. UNIX for Dummies Questions & Answers

echo Java version

Hi When I say java -version, the following text is printed java version "1.4.2" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2) Classic VM (build 1.4.2, J2RE 1.4.2 IBM AIX build ca142-20060421 (SR5) (JIT enabled: jitc)) Is there a way to echo Java version? (1 Reply)
Discussion started by: neeto
1 Replies
Login or Register to Ask a Question

Featured Tech Videos