Sunday, August 23, 2015

Install Java on Linux Machine


java-1.7.0-openjdk              - OpenJDK Runtime Environment
java-1.7.0-openjdk-devel    - OpenJDK Development Environment

1) Check list of available java versions

       # sudo yum search java | grep -i --color JDK


2) Use yum command to install OpenJDK:

      # sudo yum install java-1.7.0-openjdk java-1.7.0-openjdk-devel


3) Set JAVA_HOME environment variable using export command:

     
# export JAVA_HOME=/usr/lib/jvm/jre-1.7.0-openjdk.x86_64


4) Done

No comments:

Post a Comment