Java Training Course/JT01: Difference between revisions

From tehowiki
Jump to navigation Jump to search
imported>Gfis
No edit summary
imported>Gfis
Prev + Next
 
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/JT02|-> Next session: JT02]]
[[Java Training Course|&lt; Previous: JTC]] Overview<br />
[[Java Training Course/JT02|&gt; Next: JT02]] "Hello, World!"

Latest revision as of 09:11, 24 September 2017

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!"