Tutorial to Developed Android Applications Using Eclipse Part 4

It has been mention earlier in our previous article that the android applications are created using the Java programming language. For that we need to install JDK first. Here we will the step by step of the JDK installation process using JDK 6 update 27.

The following phases:
1. Double clicks on the installer icon to begin the installation process. If you don’t have installer, you can download at this link http://java.sun.com/javase/Downloads/widget/jdk6.jsp

2. Click on the Accept button License Agreement

3. Click the Next button

4. Wait until installation process is complete

5. When the installation is running, it will display options for the destination folder, and then click Next.

6. After the installation process is completed click the Finish button

7. After that we have to check whether the installation was successful. We can check by opening a Command Prompt (click start, type CMD in the search box) and then input Java. If the installation is successful the display will look like the picture below.

JDK Installation 1  Java Development Kit (JDK) Installation pic1

Configuring Path
At the command prompt, when we type javaac and the message below appear, then it mean that the configuration is not set properly. That is what causes Java cannot function properly.

pic2  Java Development Kit (JDK) Installation pic2

Press windows + pause break on the keyboard, a new window will appear, and then click the Advanced system settings. To make Java program can run properly, then we must change the path in the configuration of the operating system. Here are the steps to make the changes;

1. Click the Environment Variables button. Then a new window will appear.

pic3  Java Development Kit (JDK) Installation pic3

2. If the System Variables PATH that already point to the bin folder in the JDK, it means the configuration is correct. However, if it is not, click the New button in the System Variables

3. Type the name and path of the variable bin folder of the JDK is already installed on the computer. For example, the variable name: PATH and address of the folder: C: Program Files \ Javajdk1.6.0_27 \ bin \;

JDK Installation  Java Development Kit (JDK) Installation pic4

4. Then re-open the Command Prompt, Type java -version at the command prompt to check whether what version of Java enable.

5. The final stage is to try to type javac at the command prompt again. If the below display appears, then the path configuration has been done successfuly.

JDK Installation  Java Development Kit (JDK) Installation pic5

Currently there is version 7 available, it’s has many new functions. But commonly people used for the production code is version 6. Since the version 7 is new so we may want to wait a while until everything is stable.

What do you think? It’s quite simple right?