I was wanting to start with a bit of scripting for Java, however how would you link the Lua scripts into a Java program? It doesn’t seem possible in my mind even though I’m 100% sure it is.
A quick google reveals this: http://www.keplerproject.org/luajava/
You just run the scripts from java when you need them. You could also look into Nashorn for scripting with JavaScript.
CopyableCougar4
What would you recommend for scripting in Java? Lua or JS?
For me, that would depend on what you are doing. If there is heavy logic built into the scripts, then Lua looks like it might be easier to conceptualize. For lightweight logic, I would personally suggest JavaScript.
CopyableCougar4
I think this is matter of personal preference - from my experience Lua is better suited for (especially large) games, but with both of them you should be able to implement scripting easily.
Well alright thanks I’ll have to check it out!
You got me curious. I also started to learn Lua for this purpose.
My question is - How can I get LuaJava work with eclipse?