
Repeat step 5 again to add the environment variable for Java JDK you installed initially. Now click on New and paste the path that you copied from step 10 from previous section. Under User variables section, select Path and click on Edit. Type “ sysdm.cpl ,3” without quotes to open advanced system properties. Open run dialog (press windows logo key + R). You can copy this path as you will need this in next section while setting up environment variables. So, in the end you will have directory structure as shown in following image:Ĭ:\Users\ Surender\AppData\Local\Android\cmdline-tools\tools\latest Now rename the folder named “ bin” to “ latest”. Open the directory where you extracted the files. Again, make sure you change your username. Now you will see 4 items (bin, lib, NOTICE.txt, and source.properties).Ĭlick on the extract button and paste the “ C:\Users\ Surender\AppData\Local\Android\cmdline-tools\tools” path in Copy to field and click OK. Double click on cmdline-tools folder to go inside. In 7-zip manager, you will see a folder named cmdline-tools. So, we will use 7-zip (a free tool) to extract the zip file. Many users reported the issues when used inbuilt zip utility of windows to extract the downloaded zip file. Now open the zip file downloaded in step 2 with 7-zip. So, in the end you will have:Ĭ:\Users\ Surender\AppData\Local\Android\cmdline-tools\tools Now create a new folder named Android and inside that create another folder named cmdline-tools and inside that create another folder named tools. Open run dialog (press windows logo key + R), type the following path and hit enter:. So please follow the next steps exactly the same way as mentioned: The latest version of cmdline-tools has some issues and it is rarely documented how to fix these issues. Scroll down to Command line tools only section and click on the download link next to Windows. When the download is completed, install the JDK to default location. If you don’t want to purchase a license, you could use OpenJDK as discussed in this article. Please note that the commercial use of Oracle JDK may require a valid license to be purchased. You just need the URL highlighted in red and then modify the text where it says “ otn” to “ otn-pub” and then paste the modified link (highlighted green) in browser address bar. Open a text editor, paste the copied link, and change the download link as shown in following image. Instead, right click on the button and select Copy link option from context menu.
You need to check the box but do not directly click the download button here since this will take you to a login page. This will open a popup with a checkbox and a download button.On downloads page, scroll down and click on download link next to Windows 圆4 Installer.Download and install the latest version of Java JDK using following link:.