0% found this document useful (0 votes)
19 views

ABC

The document provides steps to download and install Java JDK 16 on a Linux system. It includes commands to download the .deb file, install and configure the JDK, and verify the installation by compiling a simple Java program.

Uploaded by

Prasad Banoth
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

ABC

The document provides steps to download and install Java JDK 16 on a Linux system. It includes commands to download the .deb file, install and configure the JDK, and verify the installation by compiling a simple Java program.

Uploaded by

Prasad Banoth
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

cd Downloads

sudo dpkg -i StarUML_4.0.1_amd64.deb

check startuml in start

https://www.oracle.com/in/java/technologies/javase-jdk16-downloads.html

Down load version :::::: Linux x64 Debian Package 146.17 MB jdk-
16.0.2_linux-x64_bin.deb

mlritm@SR408-03:~$ cd Downloads/

mlritm@SR408-03:~/Downloads$ ls
jdk-16.0.2_linux-x64_bin.deb

mlritm@SR408-03:~/Downloads$ sudo dpkg -i jdk-16.0.2_linux-x64_bin.deb

mlritm@SR408-03:~$ sudo update-alternatives --install /usr/bin/java java


/usr/lib/jvm/jdk-16.0.2/bin/java 1

mlritm@SR408-03:~$ sudo update-alternatives --install /usr/bin/javac javac


/usr/lib/jvm/jdk-16.0.2/bin/java 1

mlritm@SR408-03:~$ java --version


mlritm@SR408-03:~$ javac --version
mlritm@SR408-03:~$ sudo update-alternatives --config java

mlritm@SR408-03:~$ sudo gedit /etc/environment

NEW file will open copy below line..... and save the file
;;;;;;;; /usr/lib/jvm/jdk-16.0.2

mlritm@SR408-03:~$ source /etc/environment

mlritm@SR408-03:~$ echo $JAVA_HOME

mlritm@SR408-03:~$ touch helo.java

class helo
{
public static void main(String args[])
{
System.out.println("hello prasad");
}
}

mlritm@SR408-03:~$ javac helo.java

You might also like