Java Training Course/JT01: Difference between revisions
Jump to navigation
Jump to search
imported>Gfis Created page with "# 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 corrspo..." |
imported>Gfis Prev + Next |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
==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). | # 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. | # Google, download and install the corrsponding version of the '''Java SE Development Kit 8''' (JDK) from the Oracle site on your machine. | ||
Line 14: | Line 15: | ||
OpenJDK Server VM (build 25.131-b11, mixed mode) | OpenJDK Server VM (build 25.131-b11, mixed mode) | ||
javac 1.8.0_131 | javac 1.8.0_131 | ||
[[Java Training Course|< Previous: JTC]] Overview<br /> | |||
[[Java Training Course/JT02|> Next: JT02]] "Hello, World!" |
Latest revision as of 09:11, 24 September 2017
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!"