In centos, program doesn't launch from the desktop

I have a program ( as part of pentaho data integration) that runs fine from a shell window but when I create a launcher icon on the desktop that points to the shell script, that doesn't work.

This is in centos 5.5.
Who is Participating?
opikeConnect With a Mentor Author Commented:
I discovered in a terminal window that I was getting "class not found" errors when I would try to run the shell script from another directory other than the directory in which the shell script resided. So I created a stub script that would cd into the directory first and then run the original script.
torimarConnect With a Mentor Commented:
It should work, though. Hence we must assume that you made a mistake while creating the launcher.
Please follow the instructions given here:
and make sure the full path to your script is specified. Also tick the "Run in terminal" box.
Alternatively, you could add the directory to the PATH variable modifying either the /home/user/.bash-profile (if only the current user needs to run the script) or /etc/profile (if all users should be able to do so).
More info here:

I thought about this before submitting my post, but then I couldn't imagine that a company like Pentaho would not either already modify the path on installing, or else avert the user of the fact that calling their script from outside its directory will not work.
opikeAuthor Commented:
The java CLASSPATH variable would have to be adjusted, not the PATH variable.
opikeAuthor Commented:
created stub script
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.