Java – How to install a JDK6 on Solaris10 sparc 64bits

installationjavasolaris

The installation steps of a JDK6 for:

are quite straightforward but:

  • are in two separate documents
  • do not deal with local zone (container) installation
  • do not address fully non-standard installation path

The answer below is a community-wiki one, meant to be edited.

Do you have any comments/remarks we all should know when installing JDK on a Solaris10 sparc server?

Best Answer

Since 2009 (time of my first answer), I found out that the self-extracting scripts were perfectly compatible with non-standard path (like installing a JDK in a user's $HOME/usr/local for instance, instead of the system path /usr/local)

The latest Oracle JDK download page lists:

Solaris SPARC - Self Extracting Binary        86.05 MB  jdk-6u26-solaris-sparc.sh
Solaris SPARC 64-bit - Self Extracting Binary 12.24 MB  jdk-6u26-solaris-sparcv9.sh

You need to be careful if you copy them from Windows to your server (with winscp for instance): you need to copy those two sh scripts as binary (or they won't work once copied on the Unix server).

Once on the server, you need to chmod 755 the two .sh (the second being needed only if you have a 64-bit Solaris).
Execute them both (for instance in $HOME/usr/local, as the user without needing any root privilege), first jdk-6u26-solaris-sparc.sh, then if needed jdk-6u26-solaris-sparcv9.sh.

That will create a $HOME/usr/local/jdf1.6.0_26 in which you have a fully operation JDK.

  • no root right necessary (contrary to pkgadd)
  • no environment variable modified: you will need to add $HOME/usr/local/jdf1.6.0_26/bin to your $PATH if you want to use that particular JDK, but the point is:
    this installation won't disturb any of your current environment settings.
    (note: the JAVA_HOME isn't set of course, but it never is by any installation process anyway)