Помощь(으)로 돌아가기
도움말1 мин. чтения26.04.2022IlyaKL49011

How to install JAVA_HOME in Windows 10

How to install JAVA_HOME in Windows 10

In this article, we will explain in detail how to set JAVA_HOME as an environment variable in Windows 10.

 

Greetings, KLauncher support is with you. In this article, we will explain in detail how to set JAVA_HOME as an environment variable in Windows 10.

 

Download and install Java from the official website. After installation, go to the menuStart and enter the parameters. Then click System -> About the program -> Additional system parameters.

 

 

Go to the Advanced tab and click the buttonEnvironment variables.

 

 

In the "Environment Variable" window, click the buttonCreate under the system variable.

 

In the system variable, specify the name of the variable in the form JAVA_HOME and the value of the variable as the path to the directory JDK.

 

 

Click OK.

 

Now go back to the environment variable window and select the path in the system variable.

 

 

Click the Edit button to open the "Change Environment Variable" window.

 

 

Click "Create " and enter %JAVA_HOME%\bin.

 

 

Click OK to apply the changes.

 

Check the JAVA_HOME configuration settings using CMD.

 

 

To check your configuration, open the Command Prompt.

 

Type echo %JAVA_HOME% and press Enter. This should print the JDK directory that JAVA_HOME points to. Instead, if you see a space, it means that you have not been able to configure the environment variable.

 

 

Next, type javac -version, which should print the version of the Java compiler.

 

If not, a message will be printed stating that javac is not recognized as an internal or external command. This means that the path variable is set incorrectly.

 

Any other questions? Set them in our group in Vkontakte.

관련 기사
댓글 []