Method 1: Check whether the jdk environment variable is set
echo $JAVA_HOME;
Related learning video tutorial sharing: linux video tutorial
Method 2: Check whether the version can be viewed
java -verion
Method 3: Check the background process
ps -ef|grep java
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!