简体   繁体   English

Eclipse-ADT如何找到JDK路径

[英]How does Eclipse-ADT find JDK Path

I am working with the Eclipse ADT+ADK bundle, adt-bundle-windows-x86-20131030 on Win 8. I also installed Java JDK 1.6 and i see it was installed in C:\\Program Files (x86)\\Java\\jdk1.6.0 Android ADT is working fine for me (it compiled few projects i tried - hello world and I was able to run this app on device as well) 我正在使用Win 8上的Eclipse ADT + ADK捆绑包,adt-bundle-windows-x86-20131030。我还安装了Java JDK 1.6,并且看到它安装在C:\\ Program Files(x86)\\ Java \\ jdk1中。 6.0 Android ADT对我来说运行良好(它编译了我尝试过的几个项目-世界您好,我也能够在设备上运行该应用程序)

I know the Eclipse-ADT uses JAVA_HOME variable to locate the JDK, but strangely when I checked my Windows 8 environment Variables there is no JAVA_HOME variable, which puzzled me. 我知道Eclipse-ADT使用JAVA_HOME变量来定位JDK,但是奇怪的是,当我检查Windows 8环境变量时,没有JAVA_HOME变量,这使我感到困惑。

How is Eclipse-ADT getting JDK path? Eclipse-ADT如何获取JDK路径?

Also is there any other preference/setting which tells Eclipse ADT about Java ADK path? 还有其他任何首选项/设置可以告诉Eclipse ADT Java ADK路径吗?

Note: I have another JDK 1.7 installed at C:\\Program Files\\Java\\jdk1.7.45 注意:我在C:\\ Program Files \\ Java \\ jdk1.7.45安装了另一个JDK 1.7

  • For Android SDK PATH, you can modify SDK location in subpage Android of dialog 'Preferences' (open it from menu "Window-Preferences"). 对于Android SDK PATH,您可以在“首选项”对话框的Android子页面中修改SDK位置(从菜单“窗口首选项”中将其打开)。

  • For JDK, it's fine if javac can be found from environment variable PATH. 对于JDK,如果可以从环境变量PATH中找到javac,则很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM