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

Samundra Shrestha

Fullstack Developer, Senior Software Engineer

2 thoughts on “Java installation in ubuntu in single screenshot

    • October 9, 2016 at 4:25 PM
      Permalink

      It depends on the need. I needed JDK for development purpose and it having it inside docker won’t make any sense in my case. It must exists in the system.

      Reply

Leave a Reply

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