LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   Creating desktop link to java program (http://www.linuxquestions.org/questions/fedora-35/creating-desktop-link-to-java-program-401520/)

patricktyler 01-10-2006 04:48 AM

Creating desktop link to java program
 
Hi,

I am trying to create a desktop link to a java program. At the moment I have to cd to the relevent directory that contains a text file that I run by typing ./myprogram. The file contains the line exec java..... I have tried creating a link to the file, but a dialog box opens up asking what program I want to open the file with...

Any help would be much appreciated.
Thanks,
Patrick

reddazz 01-10-2006 11:44 PM

When you create a launcher for a program using GNOME or KDE, there is a box that asks you for the command to run the program, enter the exact command you use to start the java application e.g. "exec /dir/to/app/java...".

rickh 01-11-2006 04:03 AM

'Command' = 'java -jar /usr/local/programname.jar'

Works for me.

patricktyler 02-03-2006 05:26 AM

Thanks
 
Hi,
Thanks for your replies - worked perfectly!
Best regards,
Patrick


All times are GMT -5. The time now is 07:30 AM.