Installing Java Development Kit (JDK) in Solaris SPARC

For Solaris on SPARC 64bit

To enable 64bit JDK on SPARC, you will need to install 2 components in sequence below.
Download below 2 item from Oracle website.

Java SE Development Kit 6u21             84.90 MB            jdk-6u21-solaris-sparc.sh                           <-32bit>
Java SE Development Kit 6u21             11.64 MB            jdk-6u21-solaris-sparcv9.sh        <- 64bit="">

First, you need to install the jdk-6u21-solaris-sparc.sh (32bit) version:
$ chmod u+x jdk-6u21-solaris-sparc.sh
$ ./jdk-6u21-solaris-sparc.sh

It will extract to a folder in current directory named as below:
$ ls -l jdk1.6.0_21

Second, you need to install the jdk-6u21-solaris-sparcv9.sh (64bit) version:
$ chmod u+x jdk-6u21-solaris-sparcv9.sh
$ ./jdk-6u21-solaris-sparcv9.sh

This will install the 64bit library into below:
$ cd jdk1.6.0_21/jre/lib
$ ll -d ./sparc*
drwxr-xr-x   9 root     root          55 Dec  8 14:15 ./sparc
drwxr-xr-x   8 root     root          48 Dec  8 14:16 ./sparcv9

Now mv it to a common folder and do a symbolic link:
$ mv jdk1.6.0_21 /usr/bin/
$ ln -s jdk1.6.0_21 java6

Show version

$ /usr/bin/java6/bin/java -version
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b07)
Java HotSpot(TM) Server VM (build 17.0-b17, mixed mode)

No comments: