Eclipse

Thomas Cashman edited this page Oct 15, 2016 · 3 revisions

Once you have generated your mini2Dx project you're ready to import it into Eclipse.

Setting up Eclipse

You need to install the following for mini2Dx development.

If developing for iOS, you'll also need the following.

  • Mac OS X (iOS Development is only possible on Mac)
  • The latest XCode installed (available for free on the Mac App Store)
  • RoboVM for Eclipse

Importing your project

  • Go to File -> Import -> Gradle -> Gradle Project
  • Click Browse and select your project's folder
  • Click Build Model. After a while, you'll see a root project and subprojects for each platform your chose.
  • Select all projects and click Finish.

Common Problems

Your Eclipse workspace folder must not be the same as your project's root folder (see this issue).

If you run into problems with missing artifacts, you need to delete your .m2 folder in the appropriate location:

  • Windows: C:\Users\username.m2
  • Mac OS X: /Users/username/.m2
  • Linux: /home/username/.m2

If you encounter a Unsupported major.minor version error, you have an incorrect version of Java installed. Please ensure you have Java 7 installed.

Running your project

Desktop

  • Right-click the desktop project.
  • Select Run as -> Java Application
  • Select the Desktop main class (DesktopLauncher).

Android

  • Make sure you have a device connected and that it shows up in the DDMS (see Android Developer Guide).
  • Right-click the android project.
  • Select Run as -> Android Application.

iOS

  • Right-click the iOS project.
  • To run on a connected device, select Run as -> iOS Device App. Make sure you have provisioned your device before you run it.
  • To run on the iOS simulator, select Run as -> iOS Simulator App.

Releasing your project

It's best to release your project from the command line.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.