Monday, April 9, 2012

Installing Java on Centos 6

[Updated for Centos 6.3 32bit]

Installation of Java for compilation and the Java Runtime Environment (JRE) for a Centos 6 server. Additional Java applications can be found from rpmforge.

Step 1: At the command line, login and install

yum install java-1.6.0-openjdk-javadoc java-1.6.0-openjdk-devel
# yum install java-1.7.0-openjdk-devel.i686 java-1.7.0-openjdk-javadoc.noarch

The above results in an installation of about 360MB.

Step 2: Verify installation

# java -version
# javac -version

Step 3: Install Java plugin for web browser

yum install icedtea-web

Note Centos 6 environment:

# yum install redhat-lsb
# lsb_release -a
LSB Version:    :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
Distributor ID:    CentOS
Description:    CentOS release 6.3 (Final)
Release:    6.3
Codename:    Final

LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.2 (Final)
Release: 6.2
Codename: Final

No comments:

Blog Archive