However, Android Studio is the recommended choice as it's easier to set up. If you don't want to install Android Studio, you can download the basic Android CLI tools which come with the sdkmanager.
Windows users don't need to do this step. Remember to run these commands (or restart) everytime you modify these files. Run source ~/.bash_profile or source ~/.zprofile (for OS X) and source ~/.bashrc (for Linux) or restart the machine. For Linux, users have to add new line export PATH=$PATH:$JAVA_HOME/bin to ~/.bashrc. On OS X, depend on the system default shell that you have to add new line export PATH=$PATH:$JAVA_HOME/bin to ~/.zprofile or ~/.bash_profile file. On the other hand, you just have to edit by click Edit button after select it and add new value %JAVA_HOME%\bin by click New button (for Windows). You'll need to intialize this variable using the same method you used for the JAVA_HOME variable if you have not already done this. PATH variable configuration: Add the JDK bin folder path to your system’s environment variable PATH (or Path on Windows 10). gedit ~/.bashrc on Ubuntu 18.04.3) and add the line export JAVA_HOME=. It should be /usr/lib/jvm/java-openjdk-amd64 on Linux (Ubuntu).įind the path to your java installation, it depends on which version of Linux you are using.