Download java
1) Go to java.com2) Click on Free Java Download button
3) Click on See all Java downloads
4) Scroll down to the bottom of the page to where the Solaris files are.
5) Download the version you need for the platform to your using.
Installation of Java
1) Extract both the 32bit and 64bit versions of JavaRun the gzip -dc or zcat commands to extract the files
On SPARC processors
root@earth>
gzip -dc jdk-7u80-solaris-sparc.tar.Z |tar xf -
root@earth> gzip -dc jdk-7u80-solaris-sparcv9.tar.Z |tar xf -
orroot@earth> gzip -dc jdk-7u80-solaris-sparcv9.tar.Z |tar xf -
root@earth>
zcat jdk-7u80-solaris-sparc.tar.Z |tar xf -
root@earth> zcat jdk-7u80-solaris-sparcv9.tar.Z |tar xf -
root@earth> zcat jdk-7u80-solaris-sparcv9.tar.Z |tar xf -
On x64/EM64T processors
root@earth>
zcat jdk-7u80-solaris-i586.tar.Z | tar xf -
root@earth> zcat jdk-7u80-solaris-x64.tar.Z | tar xf -
root@earth> zcat jdk-7u80-solaris-x64.tar.Z | tar xf -
Note - If you ran the commands as shown above, you will find the packages in same directory the .tar.Z files are in.
2) Install the packages
Enter the command below, when prompted answer yes to all the questions.
root@earth>
pkgadd -d . SUNWj7rt SUNWj7dev SUNWj7cfg SUNWj7man
root@earth> pkgadd -d . SUNWj7rtx SUNWj7dvx
root@earth> pkgadd -d . SUNWj7rtx SUNWj7dvx
Note - If you want a minimal install, then all you need to install is SUNWj7rt & SUNWj7rtx
Note - Java 8 has combined the 32 bit and 64 bit versions, so you only need to install what appears to be only the 32 bit version.
Now you are done, congratulations. If you want more info, review the references and man pages below. Also be sure to checkout some of my other posts on Java.
References
Installation Instructions form Java.com
The Offical Instructions from Oracle
Man Pages
pkgadd
gzip
zcat
Related posts on this blog:
How to install or upgrade Java in Linux
Updating Java on Solaris
Checking Java Versions Remotely
Download Java in MOS
Access the Java Control Panel
Updating Java in NetBackup
If have any question on how to install Java on Solaris then feel free to ask below.
No comments:
Post a Comment