i made a library for powder toy that uses java and jlua to execute a whole set of lua files in a directory and that uses the official api.
how-to:
download it from https://github.com/TemTemmie/coffeepowder
compile it (i'll provide a jar later in the releases page)
use the examples in the examples directory.
I don't care, I don't use java