Verify Java version
- Last UpdatedJan 04, 2023
- 1 minute read
- PI System
- PI SQL Client JDBC 2021
- Developer
In Java, older versions remain installed for compatibility. Programs can explicitly reference an older version or use the general path that should, but do not always, give you the latest version installed. Therefore, even if you updated the Java version to 8 or later, you may still be referencing an older version of Java. Use the following procedure to verify the version and architecture before using it with PI SQL Client JDBC.
-
In a Command Prompt window, type java -version and press Enter.
You should see output such as:
java version "1.8.0-171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode) -
If the correct version is not displayed, you can either update the default path to the correct version or use the absolute path to the correct version.