How to open or execute an external program

edited August 2015 in How To...

I want to open an external program with proccesing (.EXE). It just needs to be started. On older posts people were talking about using an open function, but Processing says that it doesn't exist (the links to the refernce library are also not working).


  • Answer ✓

    import java.util.*; import*;

    Runtime rt;

    int exitVal;

    void setup() {

    rt = Runtime.getRuntime();

    try {

    Process proc = rt.exec("notepad.exe");
    //exitVal = proc.exitValue();


    catch(Exception e) {




    void draw() { }

  • Apparently, open() has been replaced with launch().

Sign In or Register to comment.