Last active
December 20, 2015 06:48
-
-
Save geoom/6088318 to your computer and use it in GitHub Desktop.
Steps to install java oracle in debian
This file contains 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
//Download <jdk-version>.tar.gz | |
cd Downloads // go to downloads folder | |
tar -xvf <jdk-version>.tar.gz // decompress | |
sudo mkdir -p /usr/lib/jvm/<jdk-version> // create location directory | |
sudo mv <jdk-version>/* /usr/lib/jvm/my-jdk-version/ | |
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/my-jdk-version/bin/java" 1 // install jre | |
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/my-jdk-version/bin/javac" 1 // install compiler | |
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/my-jdk-version/bin/javaws" 1 // install java web start | |
// if we have many java's versiones installed | |
sudo update-alternatives --config java // choice the bootstrap priority | |
// already, it's all | |
*Note: replace <jdk-version> for the filename you downloaded |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
don't forgot replace for the filename you downloaded