Executable Export Tutorial - BlockadiaTeam/Blockadia-Team-Project GitHub Wiki

This tutorial will explain how to convert Blockadia into a runnable .exe file

Exporting .jar file

  1. In eclipse, go to File > Export > Java > Runnable JAR file
  2. For Launch configuration pick "BlockadiaMain - Blockadia" Export Destination can be anywhere you want to store the .jar file Library handling should be "Extract required libraries into generated JAR" Export
  3. The .jar file should be exported to your chosen destination. Run it to see that it works.

Download Launch4j

Now that the .jar file is created, we will need a tool for the .exe conversion. Launch4j is a free software that can convert the .jar file you exported from eclipse to a .exe file You can download the latest version here.

Using Launch4j

  1. Open up Launch 4j
  2. In the Jar input field, locate where you have exported the .jar file from previously.
  3. In the output field, specify where you want the .exe file to be located
  4. In the icon field, find the icon in Blockadia/src/images/Blockadia-Game-Icon.ico
  5. Under the JRE tab, set Min JRE version to version 1.4.0
  6. Click the gear icon near the top and enter a name and location for the xml file
  7. The xml and exe file should be created. Run the exe to verify that it works!