Java Training Course/JT01: Difference between revisions

From tehowiki
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
No edit summary
Line 14: Line 14:
  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]]

Revision as of 09:07, 24 September 2017

  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

-> Next session: JT02