Search In This Website

Minggu, 28 September 2025

Set The JAVA_HOME variable In Microsoft Windows 8

From step 1 to step 10, you can study at the Set Up A Java Development Kit In Microsoft Windows 8 With Picture
  1. Let us locate the directory where the JDK is installed on our system, and note down the path to this directory.
  2. Open the Start menu and click "All apps" down arrow button in the bottom-left corner.
  3. Scroll through the list of apps and click "Control Panel" on the "Windows System".
  4. The Control Panel will appear on the screen.
  5. Under "View by:" on the right side, click "Category", 
  6. After then select the “System and Security” section.
  7. then select the “System” section on the right side.
  8. In the System window, click on Advanced System Settings on the left sidebar.
  9. In the System Properties window (Advanced tab):
  10. Click the Environment Variables button.

Add JAVA_HOME Variable In Microsoft Windows 8

This following step to add JAVA_HOME variable:
  1. Under the System Variables section, click a New button to create a new one.


  2. In the Variable Name field, type JAVA_HOME.


  3. In the Variable Value field, enter the path to our JDK installation directory (e.g., in this post C:\runtime\Java\jdkX.X.X_XX\). Then press OK button.


Add %JAVA_HOME% To The Path Of Windows Environment Variable

This following step to add %JAVA_HOME% to the Windows Environment Variable:
  1. In the System Properties window, select the Path variable under the System Variables section. Click Edit button, 


  2. and add %JAVA_HOME%\bin to the list of paths if it’s not already there. Click OK  button.


  3. Click OK  button to apply the changes and restart the computer to ensure the changes take effect.





Check %JAVA_HOME% Has Installed Successfully

  1. Start Command Prompt window then use the following command to check the %JAVA_HOME% has been added correctly.


  2. echo %JAVA_HOME%. You should see the path to your JDK (or JRE) installation location without bin folder.


after this you can follow and practise this optional step below according to your condition:

Edit JAVA_HOME

  1. Under the System Variables section, found JAVA_HOME variable, click Edit button to modify the existing variable.


  2. change the Variable Value field with enter the path to our JDK installation directory (e.g., in this post C:\runtime\Java\jdkX.X.X_XX\ ). Then press OK button.



NOTES: 


<< back to  Study About Java 1

Tidak ada komentar:

Posting Komentar