Ask Your Question
0

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

asked 2013-08-26 00:58:11 -0500

Steven_0111 gravatar image

updated 2013-08-26 06:56:50 -0500

baptistemm gravatar image

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
0

answered 2013-08-26 02:44:07 -0500

davidva gravatar image

updated 2013-08-26 04:03:37 -0500

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

su
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
2

answered 2013-08-26 01:25:25 -0500

baptistemm gravatar image

updated 2013-08-26 01:59:08 -0500

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

[Desktop Entry]
Type=Application
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/

Regards

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

Question Tools

Stats

Asked: 2013-08-26 00:58:11 -0500

Seen: 3,979 times

Last updated: Aug 26 '13