Using libgdx with other jvm languages - garsue/libgdx GitHub Wiki

Libgdx is mainly a java-based framework. However, because java produces Java Bytecodes, and the virtual machine runs these bytecodes, it is possible to run libgdx in any JVM language with proper java interoperability.

Interoperability

Desktop

This works out of the box, as the desktop libgdx backend uses the JVM that you have installed on your computer, which is most likely either OpenJDK or Oracle JDK. Both of these JVMs support polyglot code, as they run on .class files, not java source code.

Android

This works for many languages, but it is sometimes unavailable. For best results, search on your favorite search engine [JVM language of choice] on android.

Some examples:

iOS-ROBOVM

The ROBOVM backend is a JVM on iOS which executes java bytecode. This should work, but has not been tested!

GWT/HTML

GWT transpiles Java to JavaScript. As opposed to Java Bytecodes (.class files) to JavaScript code. There are a few reasons, quickly outlined by a Google Employee here.

Examples

Many people have used libgdx in their JVM language of choice. Here are some examples.

TODO (find some recent examples, would love contributions!)

reference

http://www.badlogicgames.com/wordpress/?p=2750