Saturday, October 22, 2011

Linux JDK Installation

Installation:
Once the file is copied on the Linux server (example: /usr/java).
JDK Installation Steps on Linux Operating System:
1. Change the file permission as follows.
chmod a+x jdk-xx-xxx.bin
                        
2. Run the bin file to start the installation.
./jdk-xx-xxx.bin
Unpacking...
Checksumming...
Extracting...
...
...

                        
A directory will be created under "/usr/java" with the JDK version name, which will consists of all the jdk files.
3. You can export the Java home to create it as an environment variable.
export JAVA_HOME=/usr/java/jdk1.6.x_xx
export PATH=$JAVA_HOME/bin:$PATH
                        
4. you can verify the JDK version installed on your system by issuing the following command.
which java
                        
Output:
/usr/java/jdk1.6.x_xx/bin/java
                        
java -version
                        
Output:
java version "1.6.x_xx"
Java(TM) SE Runtime Environment (build 1.6.x_xx-bxx)
Java HotSpot(TM) 32-Bit Server VM (build 11.0-bxx, mixed mode)
                        
5. Installation Completed

No comments:

Post a Comment