I am aware of this method:
How can I add functions to _G that run java code using Luaj?
But that link lets you add functions such as math.abs(...). I just want to add functions without libraries or having to use require, you can just use myfunction() right out of the box.
How do I do this?
I found the answer in the LuaJ source: