Setup Eclipse Part 1/2

Posted by Vexillum on May 05, 2012

In this tutorial we are going to install JDK (Java Development Kit), Eclipse and Android SDK.

Now, before we start any developing we need to install eclipse and all the other tools required to develop an android application.

  1. We need to download
    1. JDK (Java Development Kit) 
      1. Select “Java Platform (JDK)”
      2. Accept License Agreement
      3. Be sure to download the version that fits your operating system.
    2. Eclipse 
      1. Eclipse Classic
      2. Be sure to download the version that fits your operating system.
    3. Android SDK 
      1. Be sure to download the version that fits your operating system.
        1. If you are using Windows I would recommend you to download the installer.
  2. Installing the Software
    1. JDK (Java Development Kit)
      1. Just run the installer and follow the instructions.
      2. When you finished installing the JDK it asks you to register the product. You can ignore this step and close the browser window.
    2. Eclipse
      1. To install Eclipse you just need to unpack the zip file.
        1. I unzipped it in the root directory
    3. Android SDK
      1. When you start the program it will check for the JDK.
      2. I would recommend changing the install location of the SDK to “C:\eclipse\Android\android-sdk”.
      3. Now when you finished installing the SDK you can start it.
        1. I recommend selecting all versions from “2.2” to the current one as well as all the Tools and all the Extras.
          1. There is no point in installing a lower version than 2.2 since AndEngine(GLES2) requires Android >= 2.2.
        2. Just press “Accept All” and the download+ installation will start
          1. This takes 10-30minutes depending on your internet connection.
  3. Setup
    1.   Start Eclipse and select a workspace location
      1. I selected “C:\eclipse\workspace” and marked it as my default workspace location.
    2. Click on “Workbench” to get rid of the welcome screen
    3. To install the “ADT Plugin”
      1. Select “Help”->”Install New Software”.
      2. Click Add, in the top-right corner.
        1. Enter  a name e.g. “ADT Plugin” and the Location
      3. Select all the checkboxes and click next.
      4. You will get a security warning saying that the authenticity or validity of the software can’t be established. Click OK.
      5. Restart Eclipse
        1. Now we need to set our “SDK Location”.

And we are done…

In the next Tutorial we are going to download AndEngine GLES2.