JDK Installation

We will use JDK 8 so that the compiler of language A can work. Click here to go to the Java 8 archive. Download the "Java SE Development Kit 8u202" section by selecting the appropriate one for your operating system. You must log in with an Oracle account during the download. After the download is complete, complete the installation.

Linux

Let's go to root first.

sudo su

If there is java on the system, let's remove it.

apt-get autoremove openjdk*

Let's install JDK 8

apt-get install openjdk-8-jdk

Installation Complete

java -version