LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

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

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

Rep: Reputation: 73
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, 04:03 AM   #3
rickh
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: 60
'Command' = 'java -jar /usr/local/programname.jar'

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

Original Poster
Rep: Reputation: 0
Thumbs up Thanks

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


Reply


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 05:40 AM
Creating a shell script to run Java program paultaylor Programming 7 11-12-2004 03:11 PM
Creating a link to a CDROM / DDVDrom in the desktop xavierh Mandriva 11 03-31-2004 08:56 PM
Creating a CD rom link in RH9 BadKarma Linux - General 2 12-08-2003 04:30 AM
Creating Desktop Program Icon ss109 Linux - General 4 03-15-2002 11:26 AM


All times are GMT -5. The time now is 11:03 PM.

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