Luaj Use java run the lua sprite, and Calling the Java object backwards is NULL #101
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 use debugging, and I'm pretty sure the code will execute to get there. but
Does it seem impossible to call Java backwards in a Lua script, but create a completely new JVM?
Otherwise why do I call all variables null, even if it's static.
Did I miss any important code? Or do I have a problem with my intentions?
me too and i dont know what happened
可能是Class Loader的问题
I would suggest calling the load() method from Globals, instead of loadFile(). This means you have to write your own file-reading code. It will help in debugging why it cannot load your script.
Additionally, in my implementation, I use the invoke() method instead of call() method.
--
在Globals里面应该用的是Globals#load()。不要用Globals#loadFile()。
还有一个就是,在我的APP里面,我不用LuaFunction#call(), 我用的是LuaFunction#invoke()
Fixed