How to determine whether jdk is installed in linux

王林
Release: 2019-12-25 10:47:15
Original
2766 people have browsed it

How to determine whether jdk is installed in linux

Method 1: Check whether the jdk environment variable is set

echo $JAVA_HOME;
Copy after login

Related learning video tutorial sharing: linux video tutorial

Method 2: Check whether the version can be viewed

java -verion
Copy after login

Method 3: Check the background process

ps -ef|grep java
Copy after login

Recommended related articles and tutorials:linux tutorial

The above is the detailed content of How to determine whether jdk is installed in linux. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!