In this coding to execute exe from java file.

Code:
import java.lang.*;
import java.io.*;

public class LoadNotpad{
  public static void main(String args[])throws IOException{
    Runtime r=Runtime.getRuntime();
    Process p=null;
    try
    {
      String s="c:\\windows\\notpad.exe";
      p=r.exec(s);
    }
    catch(Exception e){
      System.out.println("error==="+e.getMessage());
      e.printStackTrace();
    }
  }
}

/*This is the exception when i am running the above code plz help me to execute
this code and the mentioned java file Win32Process is not in my jdk1.2.2 */
/*
java.io.IOException: CreateProcess: c:\windows\notpad.exe error=0
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Win32Process.java:64)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:272)
at java.lang.Runtime.exec(Runtime.java:195)
at java.lang.Runtime.exec(Runtime.java:152)
at LoadNotpad.main(LoadNotpad.java:11)
Tool completed with exit code 1
*/