Home >Java >Javagetting Started >How to check whether the java environment is installed
1. Click the start menu and enter cmd
2. Enter java
in the cmd window if The prompt "'java' is not an internal or external command, nor an operable program or batch file" means that JRE is not installed
(Recommended learning: java video tutorial)
If the prompt is as shown below:
, it means that JRE has been installed
3. Enter java -version to view the java version
For some users who have newly installed JRE, the environment variables have not been set. After entering java -version, it prompts "java-version' is not an internal or external command, nor is it an operable program or Batch file."
Related article tutorial sharing: java introductory tutorial
The above is the detailed content of How to check whether the java environment is installed. For more information, please follow other related articles on the PHP Chinese website!