Home > Java > Javagetting Started > body text

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

王林
Release: 2019-11-29 10:39:15
Original
7097 people have browsed it

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

(Note - there is a space in front)

Method 1:

Command line input:

set java_home
Copy after login

Recommended video tutorials: java learning

Method 2:

Command line input:

echo %java_home%
Copy after login

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

Next:

echo $JAVA_HOME
Copy after login

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!

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