How to Install Oracle JDK 10 on Kali Easy Guide

January 18, 2018 | By the+gnu+linux+evangelist.

Oracle JDK 10 Kali - Setting Up

  1. Relocate Java JDK 10.

    sudo su

    If Got “User is Not in Sudoers file” then see: How to Enable sudo
    Make a jvm Directory if Not already there with

    if [ ! -d "/usr/lib/jvm" ]; then mkdir /usr/lib/jvm; fi

    Set the root superUser as owner:

    sudo chown -R root:root /tmp/jdk-10*

    Reiterate the Execution Permission over the Java binaries:

    chmod -R +x /tmp/jdk-10*/bin

    Finally, Shift the Java contents with:

    mv /tmp/jdk-10* /usr/lib/jvm/
  2. Installing Oracle Java JDK 10
    You can directly Copy & Paste the Commands into Terminal..

    update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-10*/bin/java 1065
    update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk-10*/bin/javac 1065
    update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk-10*/bin/jar 1065
    update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk-10*/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 Selection Number on First, Column. :)

    How to Download and Install Oracle JDK 10 on Kali Linux Easy Guide - JDK Configuration

  3. (Optional) Setting JAVA_HOME User Environment Variable.

    su [myUserName]

    Edit the Bash environment Configuration file

    nano $HOME/.bashrc

    Append:

    export JAVA_HOME=/usr/lib/jvm/jdk-10*

    Possibly to Check the JDK 10 exact PATH use in another window:

    ls /usr/lib/jvm/

    Ctr+x to Save & Exit from nano Editor :)
    Load New Bash Config:

    bash
  4. Finally, Test New Java JDK 10 Installation.

    java -version
  5. Java IDEs Installation on Kali Linux

    Eclipse IDE for Java Development Install on Kali Linux: Installing Eclipse IDE for Java Dev on Kali Linux.

    Netbeans IDE for Java Development Install on Kali Linux: Installing NetBeans IDE for Java Dev on Kali Linux.

    IntelliJ IDEA 2023 for Java Development Install on Kali Linux: Installing IntelliJ IDEA for Java Dev on Kali Linux.

    Now Thanks to Oracle-Sun Corporation you are able to Successfully Start Up with Java 10 Development.

    Welcome to Java 10 New Dev Env! ;)

Contents


QuickChic Theme • Powered by WordPress