How to set the environment variables for Java in Windows (the classpath)?
I am going to explain here by pictures for Windows 7.
Please follow the following steps:
Step 1: Go to "Start" and get into the "My Computer" properties
Step 2: Go to "Advance System Setting" and click on it.
Step 3: Go to "Start" and get into the "My Computer" properties
Step 4: The dialog for Environment variable will open like this:
Step 5: Go to path and click on edit.
Step 6: Put the path of your JDK wherever it resides up to bin like you can see in the picture. Also add path from your sdk of Android up to the Platform Tools: