Configure JDK1.8 environment variables under Windows 10 system

  1. Find this computer --> right click --> select properties
    Insert picture description here

  2. Choose advanced system
    Insert picture description here

  3. Select environment variables
    Insert picture description here

  4. Find system variables --> select new
    Insert picture description here

  5. Enter variable name and variable value --> click OK
    Insert picture description here

  6. Find the path variable in the system variables --> Edit --> New
    Insert picture description here

  7. Enter %JAVA_HOME%\bin --> click OK
    Insert picture description here

  8. Open the command prompt --> enter java or javac anywhere --> Enter to test whether the configuration is successful
    Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_45864391/article/details/108668958