HOWTO Install a JRE on Sun Solaris

This article was first written in September 2004 for the BeezNest technical
website (

It may seem natural that Java should be available on Solaris. Actually, it is, but Solaris 8 for example features an obsolete JRE (Java Runtime Environment), JRE 1.2.

Let us see how to install a r(d)ecent JRE on Solaris.

Download the JRE for Solaris, and for your architecture. You’ll get a file like this:

Go to /usr as root.

Execute the following command, given the name hereup:

# sh

Replace the link /usr/java (which currently points to ./java1.2) with a link to the newly-created directory.

# ln -s ./j2re1.4.2_05 java

You’re done!

To test you are using the new version, just issue a:

# java -version

You should now see something like this:

java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)

Related Posts

HOWTO Determine which application is listening on a network port under Solaris

This article is incomplete and was first written in July 2007 for the...

Sun Solaris

This article was first written in February 2006 for the BeezNest technical website...