shell scripts in solaris frm java
How to run the shell scripts from java under solaris? Following is the code what i have written..
Process p1 = Runtime.getRuntime().exec("/opt.sh");
p1.waitFor();
This is working perfectly under Linux OS. But got confused why it is not running under solaris..Can anybody please give me suggestions?
The error am getting is..
java.io.IOException: /export/home0/oracle/Testing/Day_12122006/SS7/opt.sh: cannot execute
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:54)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:566)
at java.lang.Runtime.exec(Runtime.java:428)
at java.lang.Runtime.exec(Runtime.java:364)
at java.lang.Runtime.exec(Runtime.java:326)
Thanks in advance..

