import org.luaj.vm2.*; import org.luaj.vm2.compiler.LuaC; import org.luaj.vm2.lib.*; import org.luaj.vm2.lib.jse.*; /** Simple program that illustrates basic sand-boxing of client scripts * in a server environment. * *

Although this sandboxing is done primarily in Java here, these * same techniques should all be possible directly from lua using metatables, * and examples are shown in examples/lua/samplesandboxed.lua. * *

The main goals of this sandbox are: *