Java

Administrator's Guide

Release 5.0

March 2007


Table of Contents

Preface
1. Installation
1.1. Download
1.2. Install
2. Upgrade
2.1. Download
2.2. Upgrade
3. Downgrade
3.1. Downgrade

Preface

Java refers to a number of computer software products and specifications from Sun Microsystems (the Java™ technology) that together provide a system for developing and deploying cross-platform applications. Java is used in a wide variety of computing platforms spanning from embedded devices and cell phones on the low end to enterprise servers and super computers on the high end. Java is fairly ubiquitous in cell phones, Web servers and enterprise applications, and somewhat less common in desktop applications, though users may have come across Java applets when browsing the Web.

For years, Sun Microsystems referred to Java as the "Java technology" but has used the word "Java" as an adjective about the technology. In practice, many programmers have used the word "Java" to mean the programming language, while the execution platform was called the "JRE" (Java Runtime Environment) and the compiler-system was called the "JDK" (Java Development Kit), rather than a "Java compiler" as such. The word "Java" has often been used as an adjective, but the formal term "Java technology" should be noted (see history below).

The Java web site carries details on the latest release and other information to make your work or play with Java more productive. And The mailing lists are a good place to have your questions answered, to share experiences with other users, and to contact the developers.

Chapter 1. Installation

1.1. Download

Download and save Java 5.X binary archive from http://java.sun.com.

cd /usr/local
lynx http://java.sun.com

1.2. Install

Install binaries and create required symbolic links.

cd /usr/local
sh jdk-1_5_X_XX-linux-i586.bin
rm jdk-1_5_X_XX-linux-i586.bin
ln -s jdk1.5.X_XX java
cd /usr/bin
ln -s /usr/local/java/bin/* .

Chapter 2. Upgrade

2.1. Download

Same as installation section.

2.2. Upgrade

Upgrade old version to the new version.

#stop all java process, you can list users with :
$> ps -aux|grep java
cd /usr/local
sh jdk-X_X_X_XX-linux-i586.bin
rm jdk-X_X_X_XX-linux-i586.bin
rm /usr/local/java
ln -s jdkX.X.X_XX java
cd /usr/bin
ln -sf /usr/local/java/bin/* .

Chapter 3. Downgrade

3.1. Downgrade

Downgrade new version (X.X.X_XX) to the old version (Y.Y.Y_YY).

#stop all java process, you can list users with :
$> ps -aux|grep java
cd /usr/local
rm /usr/local/java
ln -s jdkY.Y.Y_YY java
cd /usr/bin
ln -sf /usr/local/java/bin/* .