Thursday, July 3, 2014

JDK Installation in Linux

JDK Installation in Linux
Download JDK rpm from below link:
  1. Copy jdk-6u43-linux-rpm.bin to softwares folder under opt
  2. Provide required permissions on that file chmod 775 jdk-6u43-linux-rpm.bin using root
  3. Run ./jdk-6u43-linux-rpm.bin

  1. Press Enter
  1. By default java will be installed under /usr/java
  2. To check java version use java –version
  3. To change java version to present version do following steps
    1. Provide required permission on /opt/oracle folder
    2. Copy java to required folder using cp -R /usr/java /opt/oracle/
    1. Run following steps
      1. echo 'export JAVA_HOME=/opt/oracle/java/jdk1.6.0_43' > /etc/profile.d/
      2. echo 'export PATH=$JAVA_HOME/bin:$PATH' >> /etc/profile.d/
      3. source /etc/profile.d/
      4. java –version

No comments:

Post a Comment

Other Posts