Posted By


laurenceosx on 01/19/17

Tagged


Statistics


Viewed 141 times
Favorited by 0 user(s)

javaLauncher.desktop


/ Published in: Bash
Save to your folder(s)

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.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.