Open Yecgaa1 opened 2 years ago
me too and i dont know what happened
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?
可能是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()
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?