Java Training Course/JT01
Jump to navigation
Jump to search
Installation of the Java SDK
- Determine the proper version of your operating system (Windows 7, 10, Linux ...) and the architecture of your PC (32 bit, 64 bit).
- Google, download and install the corrsponding version of the Java SE Development Kit 8 (JDK) from the Oracle site on your machine.
- Find out in which directory the JDK was stored by the installation, especially where the
.../bin
directory is located. - Add this
.../bin
directory to the environment variable for your system path. - Open a commandline window:
- 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). - On Linux, open a Terminal.
- On Windows, create a new link to
- 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!"