?
Solved

In centos, program doesn't launch from the desktop

Posted on 2010-11-19
5
Medium Priority
?
1,201 Views
Last Modified: 2012-05-10
I have a program (spoon.sh 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.
0
Comment
Question by:opike
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 35

Assisted Solution

by:torimar
torimar earned 2000 total points
ID: 34177898
It should work, though. Hence we must assume that you made a mistake while creating the launcher.
Please follow the instructions given here:
http://www.linuxtopia.org/online_books/centos_linux_guides/centos_linux_step_by_step_guide/s1-desktop-desktop.html
and make sure the full path to your script is specified. Also tick the "Run in terminal" box.
0
 

Accepted Solution

by:
opike earned 0 total points
ID: 34178157
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.
0
 
LVL 35

Expert Comment

by:torimar
ID: 34178551
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: http://serverfault.com/questions/102932/adding-a-directory-to-path-in-centos/102943#102943

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.
0
 

Author Comment

by:opike
ID: 34199095
The java CLASSPATH variable would have to be adjusted, not the PATH variable.
0
 

Author Closing Comment

by:opike
ID: 34224639
created stub script
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month15 days, 14 hours left to enroll

741 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question