Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Android Application Development with Maven

You're reading from   Android Application Development with Maven Learn how to use and configure Maven to support all phases of the development of an Android application

Arrow left icon
Product type Paperback
Published in Mar 2015
Publisher
ISBN-13 9781783986101
Length 192 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

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)
You have been reading a chapter from
Android Application Development with Maven
Published in: Mar 2015
Publisher:
ISBN-13: 9781783986101
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image