Skip to content

Instantly share code, notes, and snippets.

@geoom
Last active December 20, 2015 06:48
Show Gist options
  • Save geoom/6088318 to your computer and use it in GitHub Desktop.
Save geoom/6088318 to your computer and use it in GitHub Desktop.
Steps to install java oracle in debian
//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
@geoom
Copy link
Author

geoom commented Jul 26, 2013

don't forgot replace for the filename you downloaded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment