java - tips
1. Download - Java Patches for Solaris Packages (Doc ID 1397756.1)Java SE JDK and JRE - Version 1.5.0 to 8
Oracle Solaris on x86 (32-bit)
Oracle Solaris on x86-64 (64-bit)
Oracle Solaris on SPARC (64-bit)
Oracle Solaris on SPARC (32-bit)
2. jarsigner - JAR Signing and Verification Tool
- Need to install the package developer/java/jdk-8 in solaris 11
pkg install --accept developer/java/jdk-8
3. Install Java 8 in solaris 10
- Download the Java package jdk1.8.0_121 ( jdk-8u121-solaris-sparcv9.tar.Z ) from Oracle
uncompress jdk-8u121-solaris-sparcv9.tar.Z
tar -xvf jdk-8u121-solaris-sparcv9.tar.Z
pkgadd -d . SUNWj8cfg SUNWj8dev SUNWj8jmp SUNWj8man SUNWj8rt
ls -ld /usr/java (This link will point the older Java version)
rm /usr/java (remove the link and create new link to point the newer Java Version)
cd /usr/jdk/ ; ln -s instances/jdk1.8.0 jdk1.8.0_121
cd /usr ; ln -s jdk/jdk1.8.0_121 /usr/java
java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
4. Update Java latest version to Solaris 11 IPS Respository
- IPS repository is used to updated Solaris 11 servers with latest SRU or a specific package
- To make use of that, we need to have upto date packages in Repo with latest version
- The latest version of java is released (JAVA 6U141/7U131/8U121)
- we are updating the IPS repo with latest version
- For example, we have the java version 1.8.0.112 in IPS repo
- The latest version of Jave released is 1.8.0.121
- All Java version are available under this Oracle ( Doc ID 1397756.1 )
- Download the latest JAVA 6U141/7U131/8U121 IPS REPOSITORY INSTALL GUIDE FOR ORACLE SOLARIS 11
- Download the latest JAVA 6U141/7U131/8U121 IPS REPOSITORY FOR ORACLE SOLARIS 11
A) Two files has been downloaded
cd /var/tmp/jdk8.121 ; ls
p25354925_1100_Solaris86-64.zip
p25354920_1100_SOLARIS64.zip
B) Unzip the file which contain the Install script
unzip p25354925_1100_Solaris86-64.zip
C) Update the packages in IPS repository
./install-repo.ksh -s /var/tmp/jdk8.121 -d /sol.11.3/repo -v
Now Java latest version are updated in IPS Repo
Update Java independently Oracle Solaris 11.3 Clients from IPS Repository
D) To update the Java 8 packages:
pkg change-facet version-lock.consolidation/java-8/java-8-incorporation=false
pkg update jre-8
E) To update the Java 7 packages:
pkg change-facet version-lock.consolidation/java-7/java-7-incorporation=false
pkg update jre-7
F) To update the Java 6 packages:
pkg change-facet version-lock.consolidation/ub_javavm-6/ub_javavm-6-incorporation=false
pkg update consolidation/ub_javavm-6/ub_javavm-6-incorporation@1.6.0.141
No comments:
Post a Comment