![compiling java file windows 10 bash on ubuntu compiling java file windows 10 bash on ubuntu](https://linuxconfig.org/wp-content/uploads/2020/03/03-oracle-java-installation-on-ubuntu-20-04-focal-fossa-linux.png)
COMPILING JAVA FILE WINDOWS 10 BASH ON UBUNTU HOW TO
Next, let's see how to install the official JDK and JRE of Oracle. The 20.04 version of Ubuntu by default includes the 11 version of OpenJDK and it is an open-source version of the JDK and JRE.įirst, we need to update the index of the package for installing this version. One of the easiest options to install Java is to apply the version which is packaged using Ubuntu. The 20.04 server set up of Ubuntu by following the 20.04 initial server setup guide of Ubuntu including a non-root sudo user and a firewall. The Java Development Kit contains the Java Runtime Environment and debugging/development tools as well as libraries mandatory for building Java applications. The Java Runtime Environment is composed of the Java Virtual Machine, binaries, and classes that permit us to execute Java programs.
![compiling java file windows 10 bash on ubuntu compiling java file windows 10 bash on ubuntu](https://i.stack.imgur.com/SWfSz.png)
The repositories of Ubuntu 20.04 (default) contain two packages of OpenJDK, Java Development Kit, and Java Runtime Environment. When we are finished, we will be able to apply the JDK for developing software or using the Java Runtime for running software. We will then choose the release we wish to use for our projects. We will install OpenJDK and the official JDK as well from Oracle. In this article, we will install many releases of Java Development Kit (JDK) and Java Runtime Environment (JRE) using 'apt'. JVM (Virtual Machine of Java) and Java are needed for various types of software including Jenkins, Cassandra, Glassfish, Jetty, and Tomcat.