How can I insert lua in java?

Is LuaJava required for this? or can i insert lua in java without it?

+50
java lua
Jan 21 '10 at 22:25
source share
4 answers

LuaJ is easy to embed in Java. I had to change a few lines of my source to make it work as I expected (it did not require the IO library automatically).

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

+27
Mar 24 '10 at 13:36
source share

Try also kahlua and Mochalua .

+11
Jan 21 '10 at
source share

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

+3
Jan 21
source share

Lua is a C library, you can embed it in Java, but you will need to interact with the Java and Lua virtual machine with some C code.

The authors of LuaJava have already done this work - you'd better use this than write your own.

+1
Jan 21
source share



All Articles