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

How to check whether java is installed in centos

王林
Release: 2020-05-21 15:44:41
Original
5143 people have browsed it

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template