Windows system, Java development kit (jdk) – HP Integrity NonStop H-Series User Manual
Page 31
Windows System
The following software must be installed on your Windows system:
•
•
•
JDBC Type 4 Driver for NonStop SQL/MX
•
Java Development Kit (JDK)
The version of JDK installed on your system must be 1.5 or later.
If you already have JDK installed on your Windows system, check its version using the following
command:
Command Prompt> java –version
java version "1.5.0_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing)
NOTE:
The above output is for JDK 1.5.
If the
java -version
command returns an error:
'java' is not recognized as an internal or external command, operable program or batch file.
set the
PATH
and
JAVA_HOME
variables using the following steps:
1.
Right-click
My Computer
on your desktop and select
Properties
.
The System Properties window appears.
2.
Click the
Advanced
tab.
3.
Click
Environment Variables
.
A list of environment variables appears.
4.
In the
User Variables
dialog box, check for the existence of
PATH
and
JAVA_HOME
variables.
If these variables are present, verify the following:
•
The
PATH
variable includes the
bin
directory of
<Java installation directory
on Windows>.
•
The
JAVA_HOME
variable is set to
<Java installation directory on Windows>
.
If the
PATH
and
JAVA_HOME
variables exist, but do not contain
<Java installation
directory on Windows>\bin
and
<Java installation directory on Windows>
,
set them as explained below:
1.
Add
<Java installation directory on Windows>\bin
to
PATH
, separated
by a semicolon, and
<Java installation directory on Windows>
to
JAVA_HOME
.
For example:
Add C:\Program Files\Java\jdk1.5.0_05\bin
to the
PATH
variable and
C:\Program Files\Java\jdk1.5.0_05
to the
JAVA_HOME variable
.
2.
Click
OK
.
3.
Click
Apply Changes
.
If the
PATH
and
JAVA_HOME
variables do not exist, follow these steps:
1.
Click
New
in the
User Variables
dialog box.
2.
Enter the variable name as
PATH
and variable value as
<Java installation
directory on Windows>\bin.
Prerequisites
31