需要机器人的研究与开发JDK [英] Is JDK required for android developement
问题描述
我一直在使用Ubuntu的Eclipse的很长一段时间,现在成功运行和构建Android APK的。不过我已经意识到我从来没有我的系统中,只有JRE上安装了JDK。那么,是不是JDK要求Android开发我的问题?
下面是一些品脱证明有一个JDK没有提到任何地方在我的系统:
-
在$ JAVA_HOME环境变量指向JRE文件夹
/home/faizal/DEV/jre1.7.0_55
。 -
的readlink -f $(其中JAVA)
也指向同一个JRE文件夹中。 -
甚至Eclipse中指向相同的位置,如果我看一下:
日食 - >窗口 - > preferences - >爪哇 - >已安装的JRE
-
的Eclipse - >帮助 - >关于日食 - >安装细节 - >配置
还指出,同一位置:java.home = /家庭/ faizal的/ dev / jre1.7.0_55
根据系统的要求 - >在下面的链接,开发工具
<一个href=\"http://developer.android.com/sdk/index.html\">http://developer.android.com/sdk/index.html
JDK 6(JRE单独是不够的)
块引用>注:Eclipse的ADT插件需要Java 7,如果你的目标编译的是左旋开发商preVIEW
I have been using Eclipse on Ubuntu for a long time now to successfully run and build android apk's. But i have just realized i had never installed a JDK on my system, only the JRE. So my question is isn't JDK required for Android development?
Below are some pints to prove that there is no reference to a JDK anywhere on my system :
The $JAVA_HOME environment variable points to the JRE folder
/home/faizal/DEV/jre1.7.0_55
.
readlink -f $(which java)
also points to the same JRE folder.Even Eclipse points to the same location if i look at :
Eclipse -> Window -> Preferences -> Java -> Installed JREs
Eclipse -> Help -> About Eclipse -> Installation details -> Configuration
also points to same location :java.home=/home/faizal/DEV/jre1.7.0_55
解决方案According to System Requirements --> Development Tools in the below link
http://developer.android.com/sdk/index.html
JDK 6 (JRE alone is not sufficient)
Note: The Eclipse ADT plug-in requires Java 7 if your compilation target is the L developer preview.
这篇关于需要机器人的研究与开发JDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!