> Company- and IT-organisation

> IT-equipment and installation

> Service-applications for the Server
> Service-applications for a Workstation

Linux - Java-Runtime-Environment and -Development-Kit

For this document and all references (links) please obey the hints and regulations concerning copyright, disclaimer and trademarks.

Last revision of this document:
2005-08-10

This document gives instructions how to install and test different Java-JREs and -SDKs.

Java is a programming language which was developed with the intention, that programs written in Java can be executed on computers with different operating-systems.
In contrast to other programming-languages programs written in Java do not need special coding for a particular operating-system.
To enable the execution of Java-program on a particular operating-system, a Java-Runtime-Environment (JRE) or a Java-Development-Kit (JDK) must be installed as a service.

General Hint:

The versions of Java-JREs and Java-SDKs are progressing faster than I can maintain this document.
Internet-links may not be up-to-date anymore at the time you read this document.
Nevertheless it was my experience, that general steps of the installation do not change with the different versions.

So please be flexible and adapt the instructions in this document to the new version of Java-JREs and Java-SDKs !


Overview:

IBM Runtime-Environment and Developer-Kit for Java 1.4.1

SUN Runtime-Environment and Developer-Kit for Java 1.4.1

IBM Runtime-Environment and Developer-Kit for Java 1.4.1

Prerequisites:

Operating-system installed ;-).

Installation-instructions:

The latest version (1.4.1) of the Java-Development-Kits (JDK) can be downloaded as rpm-file (RedHat-Packet-Manager-file) from the following internet-site:
http://www-106.ibm.com/developerworks/java/jdk/linux140/

The Java-SDK will be installed with the RedHat**-Package-Manager:
rpm -ivh /download_verzeichnis/IBMJava2-SDK-1.4.1-0.0.i386.rpm

That Java can be called without entering the installation-directory, the configuration-file /etc/profile must be appended by the following line:
# Export of the Java-SDK-environment
export PATH=$PATH:/opt/IBMJava2-141/bin

As script-files of different application-programs might use the command jre (Java-Runtime-Environment) instead of java to start applications written in Java, a symbolic file-link from jre to java is set up via the command-line of a terminal-window:
ln -sf /opt/IBMJava2-141/bin/java /opt/IBMJava2-141/bin/jre
(This command is only necessary once during the installation-procedure).

Additional hints:

The file can only be changed with access-rights as 'root'.
That the change takes effect it is requiered to restart Linux**.

If the JRE (Java-Runtime-Environment) should be installed instead of the SDK (Software-Developer-Kit), the different file must be reflected when executing the rpm-command.

The IBM-SDK is not accepted as runtime-environment by OpenOffice !!.

Test:

After a restart of Linux** the following commands can be issued in a terminal-window:
jre -fullversion bzw.
java -fullversion

The result should be as follows:
java full version 'J2RE 1.4.1 IBM build cxia 32141-20030522'
where the final- number might be different with newer versions.

To top of document.

SUN Runtime-Environment and Developer-Kit for Java 1.4.1

Prerequisites:

Operating-system installed ;-).

Installation-instructions:

The latest version (1.4.2) of the Java-Development-Kits (JDK) can be downloaded as bin-file (self-extracting) from the following internet-site:
http://java.sun.com/j2se/1.4/download.html . Please choose the version 'Linux RPM in self extracting file'.

After changing to the Download-directory and executing the downloaded file, a file suitable for the RedHat-Package-Manager will be extracted:
cd /download_verzeichnis
./j2sdk-1_4_2_08-linux-i586-rpm.bin

The extracted file will be installed with the RedHat-Package-Manager:
rpm -ivh /download_verzeichnis/j2sdk-1_4_2_08-linux-i586.rpm

That Java can be called without entering the installation-directory, the configuration-file /etc/profile must be appended by the following line:
# Export of the Java-SDK-environment
export PATH=$PATH:/usr/java/j2sdk1.4.2_08/bin

As script-files of different application-programs might use the command jre (Java-Runtime-Environment) instead of java to start applications written in Java, a symbolic file-link from jre to java is set up via the command-line of a terminal-window:
ln -sf /usr/java/j2sdk1.4.2_08/bin/java /usr/java/j2sdk1.4.2_08/bin/jre
(This command is only necessary once during the installation-procedure).

Additional hints:

The files can only be installed with access-rights as 'root'.
That the installation takes effect, it is requiered to restart Linux**.

If the JRE (Java-Runtime-Environment) should be installed instead of the SDK (Software-Developer-Kit), the different file must be reflected when executing the rpm-command.

Test:

After a restart of Linux** the following commands can be issued in a terminal-window:
jre -fullversion or
java -fullversion

The result should be as follows:
java full version '1.4.2_08-b03'
where the final- number might be different with newer versions.


To top of document.

Credits