3 Replies Latest reply: Feb 14, 2007 9:51 PM by 807606 RSS

    Executing .exe file in java is not working in Websphear Application Server.

    807606
      Hi All,

      When I am running below code for executing .exe file in java in websphear application developers (WSAD) its working fine, when I try to run below code in websphear application server (WAS), it�s not working.

      Process p = Runtime.getRuntime().exec(�C:\\Program Files\\GanttProject\\ganttproject.exe�);

      InputStream stderr = p.getErrorStream();
      InputStreamReader isr = new InputStreamReader(stderr);
      BufferedReader br = new BufferedReader(isr);
      String line = null;
      while ( (line = br.readLine()) != null)
           System.out.println(line);

      My environment:
      ---------------
      1) Application Developer : WASD 5.1.2
      2) Application Server : WAS 5.1
      3) OS : Windows NT

      Many Thanks.

      Naray.