Windows 7 – Right click My Computer and select Properties > Advanced
Windows 8 – Go to Control Panel > System > Advanced System SettingsWindows 10 – Search for Environment Variables then select Edit the system environment variables
Click the Environment Variables button.
Dibawah System Variables, click New.
di Variable Name field, isi:
JAVA_HOME
jika yang diinstal adalah JDK (Java Development Kit)
atauJRE_HOME
jika yang diinstal adalah JRE (Java Runtime Environment)
masih di Variable Name. klik Path/Edit/ isi
C:\SDK\platform-tools
E:\gradle\bin
%JDK_HOME%\bin