Use jpackage_script macro, standard java env, and working example config