Home >Operation and Maintenance >Linux Operation and Maintenance >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.
#2. Enter: java -version and press Enter.
#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.
#4. If the java version is printed, it means that the linux server has jdk installed.
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!