How can I embed Lua in Java?

Solution 1:

LuaJ is easy to embed in Java. I did have to change a few lines of their source to get it to work how I expected (it didn't require the IO library automatically).

http://sourceforge.net/projects/luaj/

Solution 2:

Try also kahlua and Mochalua.

Solution 3:

There is http://www.keplerproject.org/luajava/manual.html, but essentially lua is more suitable for integration with C. There are a bunch of other scripting languages with good java integration around though. Consider groovy, jruby or jython for starters.