There's a nice solution which causes Java jar files to be treated as an executable without requiring shell scripts, although it's a little fiddly to set up:
https://wiki.archlinux.org/index.php/Binfmt_misc_for_Java
I believe that popular distros have packages that will sort it out for you, although I've not used it myself recently.