Ask Your Question

How to install .jar file(s) onto Fedora?

asked 2013-08-26 05:58:11 +0000

Steven_0111 gravatar image

updated 2013-08-26 11:56:50 +0000

I want to install a program called: pdf split and merge onto my computer. I am running Fedora 19 64-bit under GNOME. I have the file and I used

$ java -jar "PATH TO FILE"/pdfsam-2.2.2-out/pdfsam-2.2.2.jar

It opens and runs the program fine. But it doesn't install it permanently, how can I install it so I just go to my applications and click the icon.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-08-26 07:44:07 +0000

updated 2013-08-26 09:03:37 +0000

Hi, I packed pdf split and merge, maybe can help you...

yum install http://sourceforge.net/projects/postinstaller/files/fedora/releases/19/x86_64/pdfsam-2.2.2e-1.fc19.noarch.rpm
edit flag offensive delete link more

answered 2013-08-26 06:25:25 +0000

updated 2013-08-26 06:59:08 +0000

To have an application launcher, you have to create a file myapp.desktop with this content.

[Desktop Entry]
Name=My Java Application
Comment=My nice explanation
Exec=java -jar /$path/to/file/pdfsam-2.2.2-out/pdfsam-2.2.2.jar

to make sure your file myapp.desktop is correct, open a terminal and run

desktop-validate-file myapp.desktop

Put the desktop file under ~/.local/share/applications/

The Full spec file with the complete list of fiel supported is located at http://standards.freedesktop.org/desktop-entry-spec/latest/


edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.


Asked: 2013-08-26 05:58:11 +0000

Seen: 3,316 times

Last updated: Aug 26 '13