Hello!
Please somebody help.
I am trying to use luaj in my webapp with tomcat.
All ok!
But when i try to use java compilation with luajc, I have errors when i execute loadfile command
org.luaj.vm2.LuaError: load test2.lua: org.luaj.vm2.LuaError: load @test2.lua: java.lang.IllegalStateException: bad class gen: java.lang.ClassCastException: test2 cannot be cast to org.luaj.vm2.LuaFunction
at org.luaj.vm2.LuaValue.error(Unknown Source)
at org.luaj.vm2.Globals.loadfile(Unknown Source)
at com.peterservice.openapi.pccm.lua.LuaEngine.innerInit(LuaEngine.java:212)
at com.peterservice.openapi.pccm.lua.LuaEngine.reload(LuaEngine.java:71)
My test2.lua file is elementary
print("Hello world")
I can not undestand what is a problem.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello!
Please somebody help.
I am trying to use luaj in my webapp with tomcat.
All ok!
But when i try to use java compilation with luajc, I have errors when i execute loadfile command
org.luaj.vm2.LuaError: load test2.lua: org.luaj.vm2.LuaError: load @test2.lua: java.lang.IllegalStateException: bad class gen: java.lang.ClassCastException: test2 cannot be cast to org.luaj.vm2.LuaFunction
at org.luaj.vm2.LuaValue.error(Unknown Source)
at org.luaj.vm2.Globals.loadfile(Unknown Source)
at com.peterservice.openapi.pccm.lua.LuaEngine.innerInit(LuaEngine.java:212)
at com.peterservice.openapi.pccm.lua.LuaEngine.reload(LuaEngine.java:71)
My test2.lua file is elementary
print("Hello world")
I can not undestand what is a problem.