The latest and most complete version of the Java SDK JDK is provided by Oracle Corporation. The way to run the JDK tool is to enter commands in the Terminal window, or you can use the integrated development environment. Java allows the runtime environment JRE, which contains virtual machines but does not include compilers.
When downloading the Java SDK, for Windows or Linux, choose between the x86 and x64 versions to select the version that matches the operating system architecture. Check that the Java installation is correct before installing the development environment. Environment variables need to be set after installing JDK.
The JAVAC program is a Java compiler. It compiles the file Java file into a class file. Java program launches Java Virtual machine. The virtual machine executes the bytecode that the compiler puts in the class file.
Java Programming Environment