Package manager in Windows: Chocolatey installation

1. Find the folder according to the path of C:\Windows\System32, and click to enter, as shown in the figure

 2. Search for cmd.exe, right-click the file, and run it as an administrator

3. Enter the following command directly and wait for the installation

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

 4. After the installation is complete, close the application, use win+R, enter cmd, and then enter "choco" in cmd, if the following response appears, the installation is successful

 

After the installation is successful, you can directly enter the following command to install JAVA

choco install java

Guess you like

Origin blog.csdn.net/m0_64206188/article/details/128681767