Home  >  Article  >  Operation and Maintenance  >  How to check whether jdk is installed in linux

How to check whether jdk is installed in linux

尚
Original
2019-12-25 13:42:348076browse

How to check whether jdk is installed in linux

JDK is a Java language software development toolkit, mainly used for java applications on mobile devices and embedded devices. JDK is the core of the entire Java development. It includes the JAVA running environment (JVM Java system class library) and JAVA tools.

How to check whether jdk is installed on linux:

1. Whether the jdk environment variable is set: echo $JAVA_HOME;

2. Use the line command: java -verion to see See if you can check the version:

1. First, connect to the linux server and enter the command line state.

How to check whether jdk is installed in linux

#2. Enter: java -version and press Enter.

How to check whether jdk is installed in linux

#3. At this time, if the prompt "-bash: java: command not found" is displayed, it means that the jdk is not installed on the Linux server.

How to check whether jdk is installed in linux

#4. If the java version is printed, it means that the linux server has jdk installed.

How to check whether jdk is installed in linux

Online learning video tutorial sharing: linux video tutorial

The above is the detailed content of How to check whether jdk is installed in linux. 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