Im trying to load the json module in Java code. The example in the Doc shows that it should go like this but it doesnt work. Does it require the module to be in the project or it loads it from LUA_PATH. does anyone have any experience with this issue?
Globals globals = JsePlatform.standardGlobals();
globals.get("require").call( LuaValue.valueOf("json") );
Exception in thread "main" org.luaj.vm2.LuaError: module 'json' not found: json no field package.preload['json'] json.lua no class 'json'
It looks like it is trying just within the LuaJ package.