Simplest example: Having a file Hello.class, with Hello class to run, create config.json file
{
"Args": ["Hello"],
"Files": ["Hello.class"]
}
$ ops load java_1.8.0_191 -c config.json
NanoVMs has a range of support plans to ensure success.
You can create a free account for open source packages here.