- Android Application Development with Maven
- Patroklos Papapetrou Jonathan LALOU
- 188字
- 2021-07-23 20:06:09
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)
- Learn Type:Driven Development
- PHP基礎案例教程
- 嚴密系統設計:方法、趨勢與挑戰
- 3D少兒游戲編程(原書第2版)
- Cocos2d-x學習筆記:完全掌握Lua API與游戲項目開發 (未來書庫)
- Android底層接口與驅動開發技術詳解
- The DevOps 2.5 Toolkit
- Asynchronous Android Programming(Second Edition)
- Linux C編程:一站式學習
- Apache Camel Developer's Cookbook
- Hands-On Neural Network Programming with C#
- Hadoop 2.X HDFS源碼剖析
- 奔跑吧 Linux內核
- 游戲設計的底層邏輯
- Wearable:Tech Projects with the Raspberry Pi Zero