You are on page 1of 7

Installation Tutorial for Android SDK with Netbeans

1. Downloads:
JDK: http://www.oracle.com/technetwork/java/javase/downloads/jdk6u26-download-400750.html
JRE:
http://www.oracle.com/technetwork/java/javase/downloads/jre-6u26download-400751.html
NetBeans
(All
Supported
Technologies
Recommended):
http://netbeans.org/downloads/index.html
Android SDK: http://developer.android.com/sdk/index.html
2. Installation:
(1)Install JDK
(2)Install JRE
(1)Install NetBeans
(2)Install Android SDK(extract first, and then run SDK Setup.exe
)

3. Configure SDK Manager


(1)Install All Package(Recommended)
We just use SDK Platform Android 2.3.3 in this tutorial

(2)Set up the environment


Click-> Start
Search keyword environment
Choose-> Edit the system environment variables

Click-> Environment Variables

Set the Variable PATH either in User Variables or System


Variables. Add the SDKs tools location into Variable Value,
like:
C:\Program Files\Android\android-sdk\tools.
Add JDK bins location into PATH of User Variable
location to Variable Value
like
"C:\Program
Files\Java\jdk1.6.0_23\bin (use ; to separate each value). Note:
the jdks version and location may be changed according to the
version you downloaded and installed, please remember to
change
it.Click OK.
Set the Variable CLASSPATH, add the following two values:
%JAVA_HOME%\lib\dt.jar;
%JAVA_HOME%\lib\tools.jar
Create two new variables: JAVA_HOME and JRE_HOME in
user
variables (the version number and location could be
changed
according to the version you downloaded and
installed)
Add C:\Program Files\Java\jdk1.6.0_23 to JAVA_HOME
Add C:\Program Files\Java\jre1.6.0_07 to JRE_HOME

Then, go to folder:C:\Program Files\Android\android-sdk\,


open SDK Manager.exe

Click Vitual devices-> New

Set the Name, Target, Built-in, and Hardware Property as


following, then click Create AVD, and close the SDK Manager

(3)Setup Android plugin in Netbeans


Click Tools-> Plugins-> Setting -> Add
With the name nbandroid and the following address, click OK.
http://kenai.com/downloads/nbandroid/updatecenter/updates.xml

Then go to Available Plugins, find and check plugins, click


install.(If you are using NetBeans 7.0, please dont check Android
Test Runner for NetBeans 6.9(or 6.9.1) and vice versa)
OK, we have done it. Then you can build an Android project.

You might also like