2DWorlds Forums
Lua for Java - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4)
+--- Forum: Scripting (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=13)
+--- Thread: Lua for Java (/showthread.php?tid=6503)



Lua for Java - Dignity - 07-05-2011

How do I get Lua for Java? lua.org only has it for C(++)...


RE: Lua for Java - Jacob__mybb_import1 - 07-05-2011

Buildism uses Kahlua: http://code.google.com/p/kahlua/

There are a few others on this page: http://lua-users.org/wiki/LuaImplementations

I originally tried to use LuaJava (http://www.keplerproject.org/luajava/), which should be as fast as and no different from standard Lua since it is just a JNI (Java Native Interface) binding for the Lua C library. However, it kept crashing the JVM when I tried to get it to use multiple threads (and the developer deleted my message when I asked for help on their mailing list), but if you're not using threads that shouldn't be a problem.


RE: Lua for Java - roperson3 - 07-05-2011

k, thanks.
Sorry, bro's ac.