Runtime.getRuntime().exec() returns exit code 127 on Ubuntu Linux [message #515342] |
Thu, 18 February 2010 09:22  |
Eclipse User |
|
|
|
Hi,
I am trying to launch one application through Runtime.getRuntime().exec()
but I am getting the exit code 127 return value on Ubuntu Linux box but no exception
I have all the path and environment variable set. Please guide what could be the problem
[Updated on: Thu, 18 February 2010 09:22] by Moderator
|
|
|
|
|
|
|
|
|
Re: Runtime.getRuntime().exec() returns exit code 127 on Ubuntu Linux [message #526829 is a reply to message #516583] |
Tue, 13 April 2010 04:03  |
Eclipse User |
|
|
|
Paul Webster wrote on Wed, 24 February 2010 03:28 |
"exec(application's full path);" it's the applications full path that
matters.
1) Is it a shell script or shell script wrapper, or an ELF executable?
2) Does it depend on an LD_LIBRARY_PATH in your environment, that might
not be available to an RCP app?
3) If you use the exact same string in File(application's full
path).exists() do you get true?
I've seen documentation for various scripts: "If a command is not found,
the child process created to execute it returns a status of 127"
Later,
PW
|
Ans 1) the application is a ELF 32-bit LSB, dynamically linked executable
2) yes LD_LIBRARY_PATH is needed and it is set
3) yes, I am getting true condition during File(application's full
path).exists()
|
|
|
Powered by
FUDForum. Page generated in 0.06563 seconds