Install Java
Install Java if it hasn't been already installed on the system. Otherwise, you can skip this section and proceed to section: Install Java Crypthography Extension. If your have previously updated the JCE policies, proceed to section: Install an application server.
You can choose between installing just a JRE (Java Runtime Environment) or a JDK (Java Development Kit). The JRE is sufficient for the applications to work correctly. However, if you wish to install a JVM monitoring tool, having a JDK installed is recommended.
Perform the following steps:
- Download a JRE/JDK
- Run the Java installer.
- Follow the installation wizard steps. At one point, you will be asked to choose a directory to install to. This will be your JAVA_HOME. If you don't change the default installation directory, Java will be probably installed at: C:\Program Files\Java. Complete the installation.
- Verify that the JAVA_HOME environment variable has been set. In order to achieve that, run the command prompt and enter the following command:
echo %JAVA_HOME%
If nothing is displayed or if you don't see a path leading to the JRE/JDK installation directory, then you will need to set the JAVA_HOME variable manually. The steps for accomplishing this are described below:
- Select Start -> Computer -> System Properties -> Advanced system settings > Environment Variables -> System Variables
- Search for the JAVA_HOME variable. If it doesn't exist, create it. The value of the variable should be the JRE installation path. Thus, something like this: “C:\Program Files\Java\jre”
To make sure that Windows can find the Java interpreter, modify the PATH variable as well:
Select Start -> Computer -> System Properties -> Advanced system settings -> Environment Variables -> System variables -> PATH
- Prepend the following string to the beginning of the PATH variable. (Note the ";" after bin)
C:\Program Files\Java\jre\bin;
- Check that the PATH variable has been updated correctly. Open the command prompt and type the following command:
java -version
The output should be the Java version installed.