官术网_书友最值得收藏!

Installing Java

Prior to anything else, download and install a JDK7 and optionally a Java Runtime Environment (JRE). Both of them are downloadable from the Oracle website: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html. As a reminder, the JDK is a collection of tools needed to develop, compile, and monitor a Java application in the development state, whereas a JRE is needed to run a Java-compiled class or an archive. Keep in mind also that at the time this book was written, Android was not officially supporting JDK8 and that Oracle had already announced the end of public releases of JDK7. We hope that now that you read these lines, Android is compatible with the latest JDK. If not, then you should pick and install the latest available update of JDK7.

Set the environment variable JAVA_HOME to the right location, such as /var/opt/java or C:\win32app\jdk_1.7.X folder.

Then, add $JAVA_HOME/bin or %JAVA_HOME%\bin parameter to your PATH variable.

Check this by running the command java -version in a terminal. Here is an example of the expected output:

C:\>java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) Client VM (build 24.45-b08, mixed mode)
主站蜘蛛池模板: 浙江省| 高淳县| 金川县| 于田县| 麦盖提县| 玉山县| 齐齐哈尔市| 靖宇县| 噶尔县| 枣庄市| 云南省| 定襄县| 赣州市| 三穗县| 阜新市| 桑日县| 循化| 德江县| 吴桥县| 三河市| 竹北市| 平顺县| 南京市| 翼城县| 二连浩特市| 寿阳县| 香港| 房产| 浙江省| 临城县| 图片| 皮山县| 凤冈县| 沅陵县| 西乌珠穆沁旗| 铁岭县| 东兴市| 嘉善县| 景洪市| 莱芜市| 商南县|