-   Fedora (
-   -   Creating desktop link to java program (

patricktyler 01-10-2006 05:48 AM

Creating desktop link to java program

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.

reddazz 01-11-2006 12:44 AM

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 05:03 AM

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

Works for me.

patricktyler 02-03-2006 06:26 AM

Thanks for your replies - worked perfectly!
Best regards,

All times are GMT -5. The time now is 08:09 AM.