What is the path for JDK on Windows 7 64-bit?

When I work with the JDK, it says that javac is not recognized as an internal or external command. What shall I do? What is the path for jdk1.6.0_21?


Depending on if you installed the 64-bit or 32-bit JDK it should be in:

  • 32-bit: C:\Program Files (x86)\Java\jdk1.6.0_21\bin
  • 64-bit: C:\Program Files\Java\jdk1.6.0_21\bin

You should be able to edit your PATH environment variable to include that path.


Well, went back, uninstalled all the JDK entries in control panel.

  • Load Java SE Development Kit 7 update 4 for Windows x 86 (32 bits) jdk-7u4-windows (even we are running Windows 7 Ultimate x64 bits SP1 system.)

  • Install this 32 bits JDK kit in c:\program files (x86)java\jdk1.7.0_04\

  • For the Android installation download installer_r18_windows.exe, then locate the Java SE folder at c:\program files (x86)\java\jre7\bin\java.exe

Conclusion: SDK only know the 32 bits JDK folder location even we are running Win 7 64 bit systems. The Program Files folder locations are different.