exec not working in browser
Ok so I created a code in java to open another program on my computer. When i ran the code inside Netbeans the code open the other program worked fine, but when i exported it and ran the code in my browser it did not open the program.
Also i added another few lines of code to draw a rectangle and some text that required the app to be signed (i currently have it set to self-sign) and that worked fine so i know the compiler and signature are working correctly.
I've spent a few hours searching for why the code won't work in browsers, but found no solution so I'm hoping someone here knows what the problem is.
// Tells the applet you will be using the MouseMotionListenermethods.
public class MouseMotionExample extends Applet implements MouseMotionListener
public static void main(String args)
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec("C:\\Users\\Trent\\Documents\\eRUN.exe");
} catch (Throwable t)