Luajavalib #75
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I can't find any references or help for the Luajavalib, I only have the things from http://luaj.org/luaj/3.0/api/index.html but that's not helping me a lot..
See the swing example at https://github.com/luaj/luaj/blob/master/examples/lua/swingapp.lua, and the docs for
CoerceJavaToLua.coerce(). I'm not seeing anything else. (Not an expert, me, started looking at LuaJ last week.)I started looking at it in the same period, I looked at it but it's not worth a wiki or documentation..
In Java, my solution to this problem is override JsePlatform and LuajavaLib
public class JsePlatformFix extends JsePlatform{
public class LuajavaLibFix extends LuajavaLib {
}
Globals globals = JsePlatformFix.standardGlobals();
LuaValue load = globals.load(luaScript);
LuaValue call = load.call();
In LuaScript, use like that : local instance = luajava.newInstance('com.xxx.xxx')
In practice, it can execute successful. Wish can help you
Fixed