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?
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:
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), firstjdk-6u26-solaris-sparc.sh
, then if neededjdk-6u26-solaris-sparcv9.sh
.That will create a
$HOME/usr/local/jdf1.6.0_26
in which you have a fully operation JDK.pkgadd
)$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)Update 2011: see my updated answer: no more
sudo pkgadd
necessary.First answer in 2009:
There are two methods for installing a JDK:
pkgadd
command)Since the Self-extracting binary is not meant to be configured to install in non-standard path, I would recommend the later one (packages).
You need to download:
Since the content extraction of those compressed archives creates files directly in the current directory, I would advise moving each archive in its dedicated repository
What is not mentioned in the documentation is the case when you need a local installation (in a local zone), separate from a global JDK already installed in
/usr/java
(/usr
is not writable from a local zone).the '
-R
' option of pkgadd comes in handy in this case.Here JDK6 is installed under:
No need to "root shell" (which is 'evil' anyway) as mentioned by the Sun documentation:
a '
sudo root pkgadd
' is enough.