Java Training Course/JT01

Jump to: navigation, search

Installation of the Java SDK

  1. Determine the proper version of your operating system (Windows 7, 10, Linux ...) and the architecture of your PC (32 bit, 64 bit).
  2. Google, download and install the corrsponding version of the Java SE Development Kit 8 (JDK) from the Oracle site on your machine.
  3. Find out in which directory the JDK was stored by the installation, especially where the .../bin directory is located.
  4. Add this .../bin directory to the environment variable for your system path.
  5. Open a commandline window:
    1. On Windows, create a new link to cmd.exe on your desktop. In its properties, set execute in to some new, empty directory. Maybe modify the size and the colors of the window (black on white background).
    2. On Linux, open a Terminal.
  6. Check the proper installation of the Java runtime and the Java compiler with the two commands
java -version
javac -version

You should see something like:

openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-2ubuntu1.16.04.3-b11)
OpenJDK Server VM (build 25.131-b11, mixed mode)
javac 1.8.0_131

< Previous: JTC Overview
> Next: JT02 "Hello, World!"