2 Replies Latest reply: Mar 13, 2007 4:15 AM by 807606 RSS

    Error with .EXE file connection

    807606
      i coded following fragment of program:
      class pgm
      {
           public static void main(String args[])
           {
                Runtime r=Runtime.getRuntime();
                Process p=null;
                try{
                p=r.exec("c:\\tc\\bin\\ppp.exe");
                }
                catch(Exception e){
                     System.out.println("Error has occured");
                }
           }
      }


      ppp.exe is the executable which is formed by compiling
      the ppp.c program on Turbo C++.
      But i am unable to run this .exe file by this JAVA program.
      I am getting the error related to NTVDM. Can any one HELP
      me to solve this problem.....