How to Install Oracle JDK 6 on Ubuntu 18.10 Cosmic

September 21, 2018 | By the+gnu+linux+evangelist | Filed in: Tutorial.

Oracle JDK 6 Ubuntu 18.10 Installation Guide

You are Welcome! The Tutorial Shows You Step-by-Step How to Install Oracle-Sun Java JDK 6 for Ubuntu 18.10 Cosmic 32/64-bit GNU+Linux Desktop.

The Oracle Java JDK 6 for Ubuntu 18.10 includes Tools useful for Developing and Testing programs written in the Java programming language and running on the Java platform.

After Installing you will need to Use the update-alternatives Command Tool to Update your System Java to Oracle Java 1.6 JDK6.

To the Article Bottom there is Links for Quick Start with Java JDK 6 Development with the Best Java IDEs: Eclipse, NetBeans & IntelliJ IDEA.

And this Visual Guide includes the Basic Screenshots of All GUI Steps involved.

Install Oracle JDK 6 on Ubuntu 18.10 Cosmic - Featured
  1. Open a Terminal Shell emulator window
    Ctrl+Alt+t on Desktop
    (Press “Enter” to Execute Commands)

    Install Oracle JDK 6 on Ubuntu 18.10 Cosmic - Open Terminal Shell Emulator
  2. Download Oracle Java SE JDK 6 for Linux:

    Oracle JDK6 x86/x8664 .bin
  3. Unpack the jdk6.bin Archive

    sudo su

    If Got “User is Not in Sudoers file” then see: How to Enable sudo

    cd && cd Downloads
    ./jdk1.6*.bin
  4. Relocate JDK 6

    mv ./jdk1.6.* /usr/lib/jvm/jdk1.6

    And if Not jvm Dir then first do:

    mkdir /usr/lib/jvm
  5. Installing Oracle Java JDK6

    update-alternatives --install 
    /usr/bin/java java /usr/lib/jvm/jdk1.6.*/bin/java 1065
    update-alternatives --install 
    /usr/bin/javac javac /usr/lib/jvm/jdk1.6.*/bin/javac 1065
    update-alternatives --install 
    /usr/bin/jar jar /usr/lib/jvm/jdk1.6.*/bin/jar 1065
    update-alternatives --install 
    /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.*/bin/javaws 1065

    Checking or Setting the System Java Version in Use with

    update-alternatives --config java

    And for the Java Compiler instead:

    sudo update-alternatives --config javac

    To Switch of Java Version Just Enter the Reference Number on First Column. :)

  6. Getting-Started

    Getting-Started Quickly with JDK6
  7. How to Install the Latest Eclipse 2019-06 R Java JEE for Ubuntu:
    Setup Eclipse on Ubuntu.

    How to Install Netbeans 8 IDE for Java on Ubuntu: Installing NetBeans IDE for Java Development on Ubuntu.

    How to Install IntelliJ IDEA 2019 for Java Dev on Ubuntu: Installing IntelliJ IDEA for Java on Ubuntu.


Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,