[1.0.1] App.open() doesn't work in java code on linux
Hi,
i'm using sikuli libraries in Eclipse (on a linux machine) to create a GUI test program.
I've issue with the App.open() function and, more general, with every function which uses Runtime.
CMD Error:java.
on windows, the same code worked fine.
from my tests seem that getRuntime().exec() need the absolute path to the program, so taking App.open() implementation in linux utils as example:
String cmd[] = { "sh", "-c", "(" + appName + ") &\necho -n $!" };
Process p = Runtime.
return sh Error:java.
instead using "/bin/sh"
String cmd[] = { "/bin/sh", "-c", "(" + appName + ") &\necho -n $!" };
Process p = Runtime.
opens the programs as expected.
I cannot redefine every method which uses getRuntime().exec() (lots of them are in LinuxUtils class),is there a workaround to use those methods under linux?
this is my configuration:
Eclipse 3.6.2
Xubuntu 12.04
Sikuli 1.0.1
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- lucafaverio
- Solved:
- Last query:
- Last reply: