Created
March 25, 2015 22:13
-
-
Save eyalgo/077c2ae4f21840f4e9ce to your computer and use it in GitHub Desktop.
Install JDK
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# root | |
su - | |
# Install JDK in system | |
rpm -Uvh /path/.../jdk-8u40-linux-i586.rpm | |
# Use correct Java | |
alternatives --install /usr/bin/java java /usr/java/latest/jre/bin/java 2000000 | |
alternatives --install /usr/bin/javac javac /usr/java/latest/bin/javac 2000000 | |
alternatives --install /usr/bin/javaws javaws /usr/java/latest/jre/bin/javaws 2000000 | |
alternatives --install /usr/bin/jar jar /usr/java/latest/bin/jar 2000000 | |
# Example how to swap javac | |
# alternatives --config javac | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment