Home >Java >Javagetting Started >How to check whether the java environment is installed

How to check whether the java environment is installed

王林
王林Original
2020-02-05 15:54:0821881browse

How to check whether the java environment is installed

1. Click the start menu and enter cmd

2. Enter java

How to check whether the java environment is installed

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:

How to check whether the java environment is installed

, it means that JRE has been installed

3. Enter java -version to view the java version

How to check whether the java environment is installed

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."

How to check whether the java environment is installed

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!

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