How can I check whether the jdk installed in the system is 32-bit or 64-bit?
If the jdk version is 32-bit, the following error message is displayed when other 64-bit software, such as eclipse, is installed: java was started but returned exit code = 13 so how to quickly check whether the default JDK installation version is 32-bit or 64-bit in the system, and how can I add support for another JDK version without deleting the original jdk version?
Open the command line tool
Run the following command:Java-version
The jdk version contains 32-bit (figure 1) and 64-bit (Figure 2) information, as shown in. If no 64 is specified, the jdk version is 32-bit.
If the jdk is a 32-bit version and needs to be switched to a 64-bit version, you only need to download the 64-bit jdk. You do not need to delete the original jdk version.
Change the JAVA environment variable and point the JAVA root directory to the 64-bit JDK directory. In this example, the 64-bit JDK installation directory is: C: \ Program Files \ Java \ jdk1.8.0 _ 131.
Change JAVA_HOME in the system environment variable from the previous 32-bit version to the newly installed 64-bit version.
The previous JAVA_HOME is: C: \ Program Files (x86) \ Java \ jdk1.8.0 _ 131, and is now changed to C: \ Program Files \ Java \ jdk1.8.0 _ 131
Run the java-version command again to check that the JDK version has been successfully switched to 64-bit.