Need help with SDK it boots up but the dos flashes open and closes fast. I installed the 7.1 79 Java on my Windows 32 bit desktop. I installed the Android and Eclipse bundle. I tried running android.bat
by administrator. I tried this for Windows.
You need to create an environment variable called JAVA_HOME
and set it to your JDK installed directory.
First, take note of your JDK installed directory. The default is c:\Program Files\Java\jdk1.8.0_{xx}
, where {xx} is the latest upgrade number. It is important to verify your JDK installed directory, via the Computer, before you proceed further.
Start a CMD shell, and issue the command set JAVA_HOME
to check if variable JAVA_HOME
has been set:
> set JAVA_HOME
Environment variable JAVA_HOME
not defined
If JAVA_HOME
is set, check if it is set to your JDK installed directory correctly. Otherwise, goto next step.
To set the environment variable JAVA_HOME
in Windows 2000/XP/Vista/7/8:
Push Start
button ⇒ Control Panel ⇒ System ⇒ (Vista/7/8) Advanced system settings ⇒ Switch to "Advanced" tab ⇒ Environment Variables ⇒ System Variables ⇒ "New" (or "Edit" for modification) ⇒ In "Variable Name", enter "JAVA_HOME" ⇒ In "Variable Value", enter your JDK installed directory (e.g., "c:\Program Files\Java\jdk1.8.0_{xx}").
To verify, RE-START a CMD shell (need to refresh the environment) and issue:
set JAVA_HOME
I also tried opening the android.bat and editing it with my java 7.1.79.