Support > Installation Guide (R7) > Installation of Java

I will show you how to download Java (JDK) from Oracle site and install it.

With a web browser the site of.

Click the "JDK DOWNLOAD" icon on the screen shown in Fig.

IMPORTANT: In order to use Wagby, "JDK" (Java Development Kit) which is Java for development is necessary.Please note that it can not be developed in "JRE" version of Java.
Wagby R 7 works in Java 7, 8, 9 environment.This setting will be explained using Java 8.When using Java 9, additional response is required.[More ...]
Figure 1 Java SE download site (images as of August 2014)

There is an option to agree on the license terms "Oracle Binary Code License Agreement for Java SE" on the screen in Figure 1.You can download it by clicking the option (radio button) of "Accept License Agreement".

Figure 2 Accept License Agreement Unselected state

If you accept the license terms, the message "you may now download this software." Will appear and you will be able to download it.

Figure 3 Java download link

You can download JDK (Java Development Kit).
If you are using the 32 bit version of the Windows OS, please download "Windows x86", if you are using the 64 bit version download "Windows x64".

Java recommends using 64 bit version.With the 32-bit version, there is a limit to the size of applications that can be developed.
For the file name to be downloaded, "jpk-8uXX" "XX" is the latest number.After that, please read the number part.

Double-click the icon of the downloaded program to execute it. The installation wizard as shown in Figure 4 starts.

Figure 4 Running the installation program
When installing Java on the Windows OS, please log in as a user with system administrator authority. (Please refer to the manual of Windows OS for details of system administrator's authority.)
Depending on the setting of the OS, the "Security warning" dialog may be displayed.Please proceed by pressing the "execute" button as it is.

A screen for selecting the installation destination folder and files to be installed is displayed.We will leave the default setting here.Press the "Next" button.

Figure 5 Proceed with the standard settings

Installation will be done.Next, we will proceed to install JRE (Java Runtime Environment).Click "Next" button.

Figure 6 Start installation of JRE

Installation is completed.Click "Close" button to exit.

Figure 7 Installation Complete

After installing, set two environment variables to use the JDK.

  • JAVA_HOME variable
  • Path variable
In the future work, you may accidentally change another variable, erase the value, etc., the operation of other applications may be affected.Please do it carefully.

From the "Start" menu, select "Control Panel" - "System". On the "System Properties" screen, select "Advanced System Settings" and click the "Environment Variables" button in the "Advanced Settings" tab.

Figure 8 System Properties

On the "Environment Variable" screen, create an item called "JAVA_HOME" in "User Variable".An underscore "_" is required between JAVA and HOME.Also, all lettersHalf size capital lettersPlease.
The variable name contains the name of the folder where the JDK was installed.

C:\Program Files\Java\jdk1.8.0_11
Figure 9 Editing environment variable JAVA_HOME
If the environment variable JAVA_HOME has already been prepared, overwrite this.
If JAVA_HOME is also set in the system environment variable, modify it in the same way.

Then select "Path" from "System environment variable" and press "Edit" button.

Enter the character string ";% JAVA_HOME% \ bin" at the end of the character string described in "Variable value". A semicolon ";" is required at the beginning of the input character string.

Figure 10 Select the system environment variable Path and add the JAVA_HOME environment variable to the end

When the above settings are completed, click the "OK" button to close all the windows related to setting environment variables.

We test whether Java configuration is completed correctly.
From the start menu, select "Run with ..." and enter "cmd".

Figure 11 Running the cmd command

The console screen as shown in Figure 12 opens.

Figure 12 console screen

Confirmation of operation of java command

Check the operation of the java command.Enter as follows.

"%JAVA_HOME%"\bin\java -version

Make sure that it is the same as the version of Java you installed.

java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)
Figure 13 Running java -version

Checking the operation of the javac command

Next, check the operation of the javac command.Enter as follows.

"%JAVA_HOME%"\bin\javac -version

Also verify that the version is correct.

javac 1.8.0_11
Figure 14 Running javac -version
If an error message is displayed, there are errors in specifying environment variables Path and JAVA_HOME.In most cases, it is due to misspelling.
If you change the environment variable, close the same console screen and test again according to the procedure from Figure 18 again.

Please close this console screen after the test.

Please match the version "1.8.0_11" described on this page to the version name of Java you actually install.

Likewise, replace the folder name "jdk1.8.0_11" described on this page appropriately and read.

Replace "1.8.0 _ 11" in the captured image with the version name of Java you are installing.

Java -version command does not work

  1. Please check whether there is misspelling of environment variable JAVA_HOME, Path.
  2. ;%JAVA_HOME%\bin
    described in Path setting is
    ;C:\Program Files\Java\jdk1.8.0_11\bin
    Please try writing it directly.
  3. Path setting, not at the end of PathAt the beginningPlease write it.

I want to use Java 9

When using Java 9, additional response is required.[More ...]