public Runner handleRun(Sketch sketch, RunnerListener listener)
throws SketchException {
XQJavaBuild build = new XQJavaBuild(sketch);
String appletClassName = build.build(false);
if (appletClassName != null) {
final Runner runtime = new Runner(build, listener);
new Thread(new Runnable() {
public void run() {
runtime.launch(false); // this blocks until finished
}
}).start();
return runtime;
}
return null;