/ Published in: Bash
For Ubuntu (might work on redhat too) create a nameOfYourJar.desktop file based on this snippet. You might have to also do command: chmod +x nameOfYourJar.desktop
You should also have your jar in the same directory as the desktop file.
This snippet also assumes java is in your current path (this is the reason for using the bash --rcfile -ci options).
This snippet so far seems space character friendly for jar names and paths with spaces and symbolic links with spaces in them (spaces commonly breaks lots of java start scripts).
I had to create this because my ubuntu installs don't always recognize jar files and don't always support the trick of creating a bash file with jar embedded inside it.
You should also have your jar in the same directory as the desktop file.
This snippet also assumes java is in your current path (this is the reason for using the bash --rcfile -ci options).
This snippet so far seems space character friendly for jar names and paths with spaces and symbolic links with spaces in them (spaces commonly breaks lots of java start scripts).
I had to create this because my ubuntu installs don't always recognize jar files and don't always support the trick of creating a bash file with jar embedded inside it.