LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-11-2010, 01:22 PM   #1
nocountryman
Member
 
Registered: Dec 2009
Location: Bulgaria for now :)
Distribution: Fedora 14
Posts: 60

Rep: Reputation: 3
can not start jar app using symlink in different directory due to file not found!


Hi to everyone.

so i have , well a small problem.. i mean if its impossible (hate this word) i will survive

anywho.. there is a website mp3skyline.com

and they have a download utility called SkyShare

so this is java app and there is one wonderful skyshare-manager.jar

nooowwww

i can start the app if i run it this way:

say /home/me/skymanager/bin/skyshare-manager.jar

however if say i create a symlink in a different directory (or if say create a launcher (gnome)) i get the following:

java.io.FileNotFoundException: ../res/system.cfg (No such file or directory)

it's obvious that it needs the cfg file from ../res/

and its obvious that it would be easy if you could configure it somehow in sourches..

but

there are no sources and i ran out of ideas how to work around it.

once again. its not such of a big a problem, BUT ! i just want to have a nice launcher on my panel or a symlink in my PATH so to make my life easier

so... any ideas appreciated !!!

Last edited by nocountryman; 03-11-2010 at 01:24 PM.
 
Old 03-12-2010, 07:03 AM   #2
trappa01
LQ Newbie
 
Registered: Dec 2009
Posts: 20

Rep: Reputation: 8
Injstead of creating a symlink, have you tried creating a shellscipt that launches /home/me/skymanager/bin/skyshare-manager.jar ?
 
Old 03-15-2010, 04:07 AM   #3
nocountryman
Member
 
Registered: Dec 2009
Location: Bulgaria for now :)
Distribution: Fedora 14
Posts: 60

Original Poster
Rep: Reputation: 3
well, the thing is that i wanted to post first in the newbie zone... and the reason was : i'm n00b

sooooo.. if you could give an example .. i would really appreciate
 
Old 03-16-2010, 06:48 AM   #4
trappa01
LQ Newbie
 
Registered: Dec 2009
Posts: 20

Rep: Reputation: 8
Just create a file and add these 2 lines:

cd /home/me/skymanager/bin
./skyshare-manager.jar

make the file executable by changing its permissions ("chmod +x filename" is the quickest method but you might prefer to have a finer control).

now run your script.

If you want to respect certain customs, it is also a good idea to add this as the first line: "#!/bin/sh" (or the path to the shell that you want the script to execute under)
This not only tells the script to run in bourne shell but passes information to the "file" command, telling it that it is in fact a script.
 
1 members found this post helpful.
Old 03-17-2010, 04:11 AM   #5
nocountryman
Member
 
Registered: Dec 2009
Location: Bulgaria for now :)
Distribution: Fedora 14
Posts: 60

Original Poster
Rep: Reputation: 3
Thanks alot mate... it really helped

little by little im going to learn what there is to learn about this beautiful OS
 
  


Reply

Tags
java, symlink


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
why is jar command not found? s0450776 Programming 11 09-08-2012 09:41 AM
Start jar file from java without being in class path at compile time nazzouri Linux - Newbie 0 02-04-2010 10:47 AM
Can't run a Jar File or App browser Linux - Newbie 2 05-21-2008 01:19 PM
how to execute a script file? Have file/directory not found error sirius57 Linux - Software 2 11-21-2007 11:43 PM
Why doesn't my system start due to missing file mozkaynak Fedora 6 12-09-2005 08:11 PM


All times are GMT -5. The time now is 03:02 AM.

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