Step 1: Determine whether to install JDK
In the console input:
java -version
Output:
At this point the computer that you installed the JDK.
Step Two: Find route
Then type in console:
java -verbose
Output:
from the final jre directory to find the corresponding jdk directory.
If you can not find the second step corresponding jdk directory, there is a way to quickly find the corresponding jdk directory, that is the first step in the implementation of the outcome of the command output, theJDK path has been added to the system environment variablesIn between we can look to the system environment variable.