I'm having a Java project which is cross-platform. For Windows and Mac OS X I deliver .EXE or .APP files generated by "launch4j" and "jarbundler" via an ANT task.
Now I'm searching for a way to deliver this piece of software to Linux users, too. At the moment, all I have is a runnable JAR.
Is there a better way than delivering a runnable JAR packed as .tar.gz? Probably an easy way where the executable shows the programs icon (which a runnable JAR can't)?
Just create a menu shortcut, though a .desktop file similar to this:
[Desktop Entry]
Categories=Games
Exec=java -jar YOURJARFILE.jar
Icon=YOURICON.png
Name=Application Name
Type=Application
(full specs on http://www.freedesktop.org/wiki/Specifications/desktop-entry-spec)
Then install it using:
xdg-desktop-menu install YOURAPP.desktop
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With