I have problem..
I have to run file try.sh from Java 1.4 and it doesnt work.
I have tried this code:
Runtime.getRuntime().exec("/bin/bash -c /home/oracle/try.sh");
and many many more....
What's more I dont get any error or excepion.
When I'm trying to run try.sh file in the command line (./try.sh) it is working.
I would be gratefull if somebody could help me.
Thanks for your replay but I still dont know whats wrong. I put on the server the file which has a metod with Runtime sh file (the same path where the try.sh is) and when I ran the jar file the sh file also ran and everything is working good. For all the files I assigned access right.