4 Replies Latest reply: Nov 21, 2012 5:30 AM by 975243 RSS

    Run .sh file from Java - problem

    975243
      Hi,
      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("sh ./try.sh");
      or
      Runtime.getRuntime().exec("sh ./try.sh");
      or
      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.

      Regards