O'Reilly logo

Libgdx Cross-platform Game Development Cookbook by Alberto Cejas Sánchez, David Saltares Márquez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Releasing your Libgdx game on desktop

Fantastic! You have just finished your awesome Libgdx game and want to release it to Windows, GNU/Linux, and Mac users.

You could pack your project into a JAR file and distribute it, although it is far from optimal. First of all, your users will need to have a JRE; otherwise, they will not be able to run the game. Moreover, if their JRE is not compatible with the game's JAR archive, it may crash or cause all sorts of problems. Finally, you might not want your users to know that you are using Java.

The best way to go about distributing Libgdx games on desktop platforms is by packing your game with a JRE of your choice into a platform-specific binary. That way you will make sure it works without any surprises. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required