> Service-applications
for the Server |
Last
revision of this document: |
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.
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
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).
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
!!.
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.
Operating-system installed ;-).
Installation-instructions:
http://java.sun.com/j2se/1.4/download.htmlThe
latest version (1.4.2) of the Java-Development-Kits (JDK) can be
downloaded as bin-file (self-extracting) from the following
internet-site
:
. 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
PATH=$PATH:/usr/java/j2sdk1.4.2_08/bin
#
Export of the Java-SDK-environment
As
script-files of different application-programs might use the command
jre
ln
-sf /(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:usr/java/
/bin/java
j2sdk1.4.2_08
/
usr/java/
/bin/jrej2sdk1.4.2_08
(This
command is only necessary once during the installation-procedure).
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.
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.