Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 01-10-2006, 05:48 AM   #1
LQ Newbie
Registered: Dec 2005
Posts: 3

Rep: Reputation: 0
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.
Old 01-11-2006, 12:44 AM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
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...".
Old 01-11-2006, 05:03 AM   #3
Senior Member
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 61
'Command' = 'java -jar /usr/local/programname.jar'

Works for me.
Old 02-03-2006, 06:26 AM   #4
LQ Newbie
Registered: Dec 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Thumbs up Thanks

Thanks for your replies - worked perfectly!
Best regards,


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Running a program link from Desktop paul85 Linux - Newbie 4 08-02-2005 06:40 AM
Creating a shell script to run Java program paultaylor Programming 7 11-12-2004 04:11 PM
Creating a link to a CDROM / DDVDrom in the desktop xavierh Mandriva 11 03-31-2004 09:56 PM
Creating a CD rom link in RH9 BadKarma Linux - General 2 12-08-2003 05:30 AM
Creating Desktop Program Icon ss109 Linux - General 4 03-15-2002 12:26 PM

All times are GMT -5. The time now is 12:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration