How can I check whether the jdk installed in the system is 32-bit or 64-bit?

Source: Internet
Author: User

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.