Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // To install java
- underversion=15.0.2
- wget https://download.java.net/java/GA/jdk15.0.2/0d1cfde4252546c6931946de8db48ee2/7/GPL/openjdk-15.0.2_linux-x64_bin.tar.gz
- gunzip openjdk-15.0.2_linux-x64_bin.tar.gz
- tar xvf openjdk-15.0.2_linux-x64_bin.tar
- mv jdk-$underversion /usr/local/java/$underversion
- ln -fs /usr/local/java/$underversion/bin/java /usr/bin
- ln -fs /usr/local/java/$underversion/bin/javac /usr/bin
- ln -fs /usr/local/java/$underversion/bin/jar /usr/bin
- rm -r *.tar
- # To check java is installed correctly
- java -version
- // To uninstall java
- rm -r /usr/local/java
- rm -r /usr/bin/java
- rm -r /usr/bin/javac
- rm -r /usr/bin/jar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement