It depends on you, i would suggest not to use any place designated to store system wide binary files. Although you can put it in
/usr/local/bin or any other designated place to store system wide binary files but as it is not a regular binary file you better put somewhere else. Your home directory may be a good place too.
Actually it does not matter where you are putting this as long as you are going to use full path to call it:
java -jar /path/to/myapp.jar
Whereas if you want to put it somewhere in your
PATH, you can add the path to the directory containing the file to the
PATH (put it in
Make sure the directory does not contain anything else (otherwise it would be a great place for running random malicious commands !!).
Now you can also create an alias of the command, for example:
alias myapp='java -jar /path/to/myapp.jar'
put it in
~/.bash_aliases. Now you can run the application by just typing: