Deploying your Game with Launch4j - Gornova/MarteEngine GitHub Wiki

So you just made a great game, but you're wondering how you can show your friends all your hard work? Many of us can't get the ant scripts working, but don't give up... there's still hope! It's not hard, and is a quite uniform process for any MarteEngine game, which means you can use one preference file for many creations!

First you are going to want to download the latest version of Launch4j by clicking the green "Download" button here: http://goo.gl/lLuRy In your IDE, create a Runnable JAR file of your game, and be sure to check the "Package required libraries into generated JAR" option, and click Finish.

On your desktop, create a folder. Inside, place these files: - Runnable jar (the one you just created) - Resources (sound, music, images: these can be found in your workspace) - Your "libs" folder from your project, containing all of your libraries. (Slick.jar, MarteEngine.jar)

Run Launch4j and set the "Basic" settings like the image below. Basic screen

And set the "JRE" settings like the image below. JRE settings

Click the save Save button, and save your settings to a safe place so you never have to do that again!

For now on if you want to create a newer version of your game JAR, simply click the blue folder icon
to the left of save and open the preference file you just saved. This will reload what you just setup.

Click the Build icon to build your game into an .Exe file. Place this exe inside of the folder containing your resources, and libs. From this folder you can run the .Exe file. If you want to deploy your game, simply zip your file using any compression program. (Right click, send to "Compressed ZIP file" on Windows, or using WinRar, or 7zip.

⚠️ **GitHub.com Fallback** ⚠️