Home >Operation and Maintenance >CentOS >How to check whether java is installed in centos

How to check whether java is installed in centos

王林
王林Original
2020-05-21 15:44:415179browse

How to check whether java is installed in centos

Method 1: You can view it through the [java -version] command. If the output information displays the jdk version number, it means that java

java -version

How to check whether java is installed in centos# is installed

##Method 2: You can view it through the rpm command. If the output information contains java-related files, it also means that java is installed.

rpm -qa | grep java

How to check whether java is installed in centos

Recommended tutorial:

centos tutorial

The above is the detailed content of How to check whether java is installed in centos. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn