This would be a better alternative than configuring it system-wide, especially on Windows. Something like launch4j, packr, or the new jpackage.
Good point. I will create an installer with jpackage when I have time.