lundi 1 août 2016

Java - Create Process Error = 193

I am trying to run an external program, which is an executable jar-File (if i double-click), but i am getting the error that the file is not a windows32 application.

try {

String filepath = "C://Users//Name//Desktop//Speedtest.jar";

        Process p = Runtime.getRuntime().exec(filepath);

    } catch (IOException e) {

        e.printStackTrace();
    }

}

Aucun commentaire:

Enregistrer un commentaire