Crack1-Setting Java path and JAVA_HOME in Windows 10 (win10JAVA路径设置) 2021-02-10

First, you should install Java First, as this :https://explainjava.com/install-java-windows/

Step1: Setting Java path

  • Search for Advanced System Settings and launch it:


    image.png
  • Go to Environment Variables:


    image.png
  • Press “New” button in “System variables” section:


    image.png
  • Type name “JAVA_HOME” and value – your path to Java, in my case, it’s C:\Program Files\Java\jre-9.0.4 and press “OK“.


    image.png
  • How to set Java path: Find “Path” system variable and press “Edit“.


    image.png
  • Press “New” and type “%JAVA_HOME%\bin” to add Java path.


    image.png

Step2: Check if JAVA_HOME variable is defined

  • We can check Java home variable by typing “echo %JAVA_HOME%“.
  1. win+r, and input: cmd
    We can verify the version of Java as well using “java -version” command.
  2. If everything is OK your output like this:


    image.png

你可能感兴趣的:(Crack1-Setting Java path and JAVA_HOME in Windows 10 (win10JAVA路径设置) 2021-02-10)