


With Java SE installed, you need to code, compile and run the customary Hello World application. Configuring the JAVA_HOME system variable. It also helps to identify the JVM installation of choice if multiple versions have been installed on a given machine.įigure 3. This allows other programs that require a JVM to find the JVM. Choosing a custom installation directory for the JDK.Īfter installation, it's customary to set the JAVA_HOME environment variable to point to the installation directory (Figure 3). All other options can remain in their default state.įigure 2. The only customization performed in this Java Hello World tutorial is to install the JDK into the C:\_jdk1.8 directory (Figure 2). The installer is relatively straightforward to use. Downloading the Java SE version of the JDK. The JDK has many flavors, including a micro edition and an enterprise development edition, but for learning Java, the right one to download and install is the standard edition: Java SE (Figure 1).įigure 1. To acquire the tools that allow you to compile source code, package Java applications in Java archives (JAR files) and acquire a JVM on which your Java programs can run, you need to download and install the Java development toolkit from Oracle. "Write once, run anywhere," or WORA, as it is often abbreviated, is one of the key reasons Java has become such a popular programming language. Any JVM is capable of running bytecode, so any computer that has a JVM installed is capable of running Java programs. In order for Java programs to run, source code needs to be compiled into Java bytecode, which contains the low-level instructions understood by the Java virtual machine. Writing Java-based applications requires a bit of up-front installation and configuration.
