I'm trying to launch an .exe from a JButton on a java Jframe, any1 knows how to make it execute.

private void OKButton3ActionPerformed(java.awt.event.ActionEvent evt) {                                          
        // TODO add your handling code here:

Look at the ProcessBuilder class

Try this..

Desktop d=Desktop.getDesktop();

Check the API doc for the args to open(). Mine doesn't take a String.

yaa ur right that was a unnoticed mistake..

File f=new File("c:\\myapplication.exe");
Desktop d=Desktop.getDesktop();