JAVA_HOME, JDK_HOME, JRE_HOME For Compatible Android SDK

You need to follow the system-requirements, and install the minimal Java-SDK (JDK) version in-order to support Android SDK development tookit (for example, did you know you can’t compile anything if you are using JDK v9 ? :) )…


(from -> System Req.)

Operating Systems
  • Windows XP (32-bit), Vista (32- or 64-bit), or Windows 7 (32- or 64-bit)
  • Mac OS X 10.8.5 or later
  • Linux
    • 64-bit distribution capable of running 32-bit applications
    • GNU C Library (glibc) 2.11 or later is required.
    • Tested on Ubuntu 12.04, Precise Pangolin
Development tools
  • JDK 6 (JRE alone is not sufficient)
  • Apache Ant 1.8 or later
  • Not compatible with Gnu Compiler for Java (gcj)

Note: Some Linux distributions may include JDK 1.4 or Gnu Compiler for Java, both of which are not supported for Android development.




  1. Download JDK 6.45 x64 (latest)
  2. Uninstall all java SDK and runtime (start from SDK, then use JavaRa and reboot your machine).I’ve used to have latest (v1.9) but Eclipse+ADT+Android SDK does compile with this version,
    so this is the ‘latest’ that is supported.
  3. Install.
  4. your pathes should be:
    C:\Program Files\Java
    C:\Program Files\Java\jdk1.6.0_45
    C:\Program Files\Java\jdk1.6.0_45\bin
    C:\Program Files\Java\jre6
    C:\Program Files\Java\jre6\binbut thats no good, some problems happens due to usage of PATHs with spaces,
    so we will use its equivilent, using “old” 8.3 format.C:\PROGRA~1\Java
  5. Using the environment variables:


PATH=....all old PATH stuff...;...;..;C:\PROGRA~1\Java\JDK16~1.0_4\bin;

Leave a Reply