JDK Installation in Linux
Download JDK rpm from below link:
Steps:
- Copy jdk-6u43-linux-rpm.bin to softwares folder under opt
- Provide required permissions on that file chmod 775 jdk-6u43-linux-rpm.bin using root
- Run ./jdk-6u43-linux-rpm.bin
- Press Enter
- By default java will be installed under /usr/java
- To check java version use java –version
- To change java version to present version do following steps
- Provide required permission on /opt/oracle folder
- Copy java to required folder using cp -R /usr/java /opt/oracle/
- Run following steps
- echo 'export JAVA_HOME=/opt/oracle/java/jdk1.6.0_43' > /etc/profile.d/jdk.sh
- echo 'export PATH=$JAVA_HOME/bin:$PATH' >> /etc/profile.d/jdk.sh
- source /etc/profile.d/jdk.sh
- java –version
No comments:
Post a Comment