Trouble executing a program in windows using java
<p>This is what i have so far...</p>

<pre><code>public void OpenApp() throws IOException{

    getAppPath();
    try { 
        Runtime rt = Runtime.getRuntime();
        rt.exec(getAppPath(notepad.exe));
    } catch (IOException ioe) { ioe.printStackTrace(); }


}
private static String getAppPath (){

      String strPath =  "C:\\Users\\Rafiq\\AppData\\Roaming\\Microsoft\\Windows\\StartMenu\\Programs\\Accessories" ;


      return strPath;

}
</code></pre>
