Call sketch from a servlet

edited July 2017 in Questions about Code

Hello 2gether,

I want to call a sketch from a servlet in a independent process (to integrate Sketch in a browser application).

First i created an exe file and tried to call this with:

        String cmd = "cmd /c start C:\\xx\\sketch.exe";
        Process process = Runtime.getRuntime().exec(cmd);

Next i created a .bat-file and tried to start this....

String cmd = "C:\\Users\\xx\\start.bat";
Process process = Runtime.getRuntime().exec(cmd);

But the Sketch doesnt run. I have no Errors on the console.

Next i created a Java class from pApplet an developed the Sketch in eclipse.

But what is the best way to manage a sketch in java?

Sign In or Register to comment.