Setting up your Development Environment (Eclipse, Intellij IDEA, NetBeans)

Julien Villegas edited this page Dec 15, 2016 · 69 revisions

Table of Contents

Clone this wiki locally

In order to get started you must setup your developement environment. LibGDX supports the most popular Integrated Development Environment (IDE). Pick the one you are most familiar with:

Setting up Eclipse

To develop your application via Eclipse, you need to install the following pieces of software.

To additionally target iOS

  • A Mac with Mac OS X
  • The latest Xcode 7 from the Mac OS X App Store for free
  • An Apple developer account if you want to test on device or deploy to the App Store. Please direct all hatred towards Apple.
  • The latest release of MobiDevelop's RoboVM plugin. (Microsoft's legacy RoboVM has been replaced by a version supported by LibGDX's core contributors)

Once all of these tools are installed, proceed to creating your project

Setting up Intellij IDEA

To develop your application via Intellij IDEA, you need to install the following pieces of software.

  • Java Development Kit 7+ (JDK) (6 will not work!)
  • Intellij IDEA, the Community edition is sufficient.
  • Android SDK, you only need the SDK (available at the bottom of the page in the 'command line tools' section), not the whole Android Studio package which is a customized version of Intellij bundled with the Android SDK. Install the latest stable platform via the SDK Manager. You also have to create an environment variable called ANDROID_HOME, which points at your Android SDK installation directory!

To additionally target iOS

  • A Mac with Mac OS X
  • An Apple developer account if you want to test on device or deploy to the App Store. Please direct all hatred towards Apple.
  • The latest XCode, which you can get from the Mac OS X App Store for free
  • The latest release of MobiDevelop's RoboVM plugin. (Microsoft's legacy RoboVM has been replaced by a version supported by LibGDX's core contributors).
Setting up Intel Multi-OS Engine

As an alternative to MobiDevelop's RoboVM fork, libGDX also provides a backend for Intel's Multi-OS Engine. You can download it here. During installation you can install a plugin for IntelliJ IDEA or Android Studio. Intel MOE currently doesn't support Eclipse.

Once all of these tools are installed, proceed to creating your project

Setting up Android Studio

To develop your application via Android Studio, you need to install the following pieces of software.

To additionally target iOS

  • A Mac with Mac OS X
  • An Apple developer account if you want to test on device or deploy to the App Store. Please direct all hatred towards Apple.
  • The latest XCode, which you can get from the Mac OS X App Store for free
  • The latest release of MobiDevelop's RoboVM plugin. (Microsoft's legacy RoboVM has been replaced by a version supported by LibGDX's core contributors). Use the Intellij IDEA's release, Android Studio is based on it.
Setting up Intel Multi-OS Engine

As an alternative to MobiDevelop's RoboVM fork, libGDX also provides a backend for Intel's Multi-OS Engine. You can download it here. During installation you can install a plugin for IntelliJ IDEA or Android Studio. Intel MOE currently doesn't support Eclipse.

Once all of these tools are installed, proceed to creating your project

Setting up NetBeans

To develop your application via NetBeans, you need to install the following pieces of software.

To additionally target iOS

  • A Mac, iOS Development does not work on Windows/Linux thanks to Apple.
  • The latest XCode, which you can get from the Mac OS X App Store for free

Once all of these tools are installed, proceed to creating your project