Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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.
- Java Development Kit 7
- Android SDK (If developing for Android)
- Eclipse IDE for Java Developers
- Eclipse Development Tools for Android
- Eclipse Gradle Tools (See Installing Gradle Tooling from update site)
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.
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
- Right-click the desktop project.
Run as -> Java Application
- Select the Desktop main class (DesktopLauncher).
- Make sure you have a device connected and that it shows up in the DDMS (see Android Developer Guide).
- Right-click the android project.
Run as -> Android Application.
- 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.