
Section 2: Installing and Configuring Java on Linux
Installing the Java™ 2 Runtime Environment 5
3. Launch the installation scripts by using the following commands from the directory in
which the file is located:
a. Type
chmod a+x j2re-1_4_1_<version number>-linux-i586.bin
and press x
b. Type
./j2re-1_4_1_<version number>-linux-i586.bin
and press x
4. Agree to the binary license agreement. The install script installs JRE in a directory
called j2re1.4.1_<version number> in the current directory.
Regarding System Preferences
By default, the installation script configures the system such that the backing store for
system preferences is created inside the Java 2 JRE's installation directory. If the JRE is
installed on a network-mounted drive, it and the system preferences can be exported for
sharing with Java runtime environments on other machines. Alternately, root users can use
the -localinstall option when running the installation script, as in this example:
j2re-1_4_1_<version number>-linux-i586.bin -localinstall
This option causes the system preferences to be stored in the /etc directory from where
they can be shared only by VMs running on the local machine. You must be defined as a
“root user” for the -localinstall option to work.
See the Preferences API documentation for more information about preferences in the
Java platform.
Regarding Root Access
If you choose to install the Java 2 Runtime Environment into system-wide location such as
/usr/local, you must first login as “root” to gain the necessary permissions. If you do not
have root access, simply install the Java 2 Runtime Environment into your home directory,
or a subdirectory that you have permission to write to.
Komentáře k této Příručce