Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report