I have been trying to add some desktop icons to my CentOS 7 KDE installation. You used to be able to just add a launcher (in some Linux flavours) but I can't seem to find those anyone. It seems an odd feature to not be very easy and straightforward to manipulate.
Since I can't find a launcher, I copied a .desktop file from /usr/share/applications/ and placed it on the desktop.
The file I am trying to run is,
Code: Select all
/home/username/version_folder/app_gui.jar
Code: Select all
java -jar app_gui.jar
Code: Select all
[Desktop Entry]
Categories=System;Settings;X-Red-Hat-Base;X-Fedora;
Comment[en_US]=Open app java GUI
Comment=Open app java GUI
Encoding=UTF-8
Exec=java -jar /home/username/version_folder/app_gui.jar
GenericName[en_US]=app_GUI
GenericName=app_GUI
Icon=/home/username/version_folder/app.ico
MimeType=
Name[en_US]=app_GUI
Name=wMc
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=
I used to be able to do,
Code: Select all
java -jar /home/username/version_folder/app_gui.jar
Code: Select all
$ java -jar ./app_GUI.jar
Error: Invalid or corrupt jarfile ./app_GUI.jar
The first time I double clicked on the icon I got a system message asking for permission to run the .jar file. I am not sure what program that message was from. I allowed permission, but the file never opened.
There are allot of possibilities for what the problem is but I'm not sure how to run this down.
Suggestions would be appreciated,
LMHmedchem