Get the App
SLTechnology News&Howtos  ›  Servers  › 

How does linux check whether jdk is 32-bit or 64-bit

Shulou Source: shulou.com Published: 2022-05-31 10:53:27 09月21日 Update

This article "linux how to check whether jdk is 32-bit or 64-bit" is not understood by most people, so the editor summarizes the following content for you, detailed, clear steps, with a certain reference value, I hope you can get something after reading this article, let's take a look at this "linux how to check jdk is 32-bit or 64-bit" article.

In linux, you can use the "java-version" command to check whether the jdk is 32-bit or 64-bit, which can check the jdk version in the system; if the "64-Bit" field appears, the installed jdk is 64-bit; if the "64-Bit" field does not appear, the installed jdk is 32-bit.

The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

How does linux check whether jdk is 32-bit or 64-bit?

Just use java-version.

JDK is a software development kit of Java language, which is mainly used for java applications on mobile devices and embedded devices. JDK is the core of the whole java development, which includes the running environment of JAVA (JVM+Java system class library) and JAVA tools.

If a 32-bit jdk is installed, the output information is as follows:

64bit is not included in the above output.

If a 64-bit jdk is installed, the output information is as follows:

Expand knowledge:

1. Check the jdk version in the system:

Java-version

.2. Check the installation package that comes with jdk:

Rpm-qa | grep java

3. If you have your own jdk, uninstall the old one:

Rpm-e-the package to be uninstalled by nodeps (obtained via rpm-qa | grep java)

Or uninstall it with the following command:

Yum remove * openjdk* above is about "how linux checks whether jdk is 32-bit or 64-bit". I believe we all have some understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about it, please follow the industry information channel.

Tags: Or content systems information commands knowledge checks outputs fields tools articles versions environments articles devices development value most of which are embedded Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Huawei Microsoft Shulou Information NVidia