[Android Studio] win11 installation configuration jdk17 super detailed

overview

  • A good installation tutorial can help developers complete more convenient and faster development.
  • There are roads and diligence in the mountain of books, and there is no limit to the sea of ​​learning. I am Qiu Zhiye, and I hope that every developer who reads my articles can grow up.

1. Download JDK

JDK official website

  • download hereJDK17 windows x64 installer
    insert image description here

2. Install JDK

  • Double click to open the downloadedjdk-17_windows-x64_bin.exe

  • click next
    insert image description here

  • Click Change to choose the installation location and create a separate folder to save the JDK

  • click next
    insert image description here

  • The installation is complete

  • click to close
    insert image description here

Two, configure jdk

  • Right click on This PC and select Properties
    insert image description here

  • Click on Advanced System Settings
    insert image description here

  • Click Advanced, then Environment Variables
    insert image description here

  • Environment variables for the new JDK
    insert image description here

  • variable name:JDK_HOME

  • Variable value: Click Browse Directory to select the directory where we installed JDK17 just now

  • click OK
    insert image description here

  • Add jDK to system variablesPath

  • Click Path, then click Edit
    insert image description here

  • New environment variable
    insert image description here

  • Type or copy and paste%JDK_HOME%\bin

  • Enter, then click OK
    insert image description here

  • To test whether the configuration is successful, press the win button + R to enter cmd and press Enter, and enter java in the terminal
    insert image description here

  • ok, complete the test
    insert image description here

Guess you like

Origin blog.csdn.net/weixin_44205779/article/details/128207278