Home  >  Article  >  Java  >  How to check the java (jdk) installation path in windows or linux system

How to check the java (jdk) installation path in windows or linux system

王林
王林Original
2019-11-29 10:39:157098browse

How to check the java (jdk) installation path in windows or linux system

Check the JDK installation path under Windows

First use the command line to check whether the JDK is installed:

java -version

(Note - there is a space in front)

Method 1:

Command line input:

set java_home

Recommended video tutorials: java learning

Method 2:

Command line input:

echo %java_home%

How to check the java (jdk) installation path in windows or linux system

Check the JDK installation path under Linux

First check whether the JDK is installed in the terminal:

java -version

Next:

echo $JAVA_HOME

Recommended java related articles and tutorials: Introduction to java language

The above is the detailed content of How to check the java (jdk) installation path in windows or linux system. 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