Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

In centos, program doesn't launch from the desktop

Posted on 2010-11-19
5
Medium Priority
?
1,207 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

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

636 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