Java installation in ubuntu in single screenshot

Java Installation in single screenshot

Java Installation in single screenshot

$ tar xvfz jdk_source.tz -C /opt

$ cd /opt/jdk_source/

$ sudo update-alternatives --install "/usr/bin/java" "java" "/opt/jdk_source/bin/java" 1
$ sudo update-alternatives --install "/usr/bin/javac" "javac" "/opt/jdk_source/bin/javac" 1
$ sudo update-alternatives --install "/usr/bin/javaws" "javac" "/opt/jdk_source/bin/javaws" 1

2 thoughts on “Java installation in ubuntu in single screenshot

Leave a Reply

Your email address will not be published. Required fields are marked *