// get pear descriptor
String pearDesc = pkgBrowser.getComponentPearDescPath();
// start CVD
MainFrame frame = CVD.createMainFrame();
// Prevent CVD from shutting down JVM after exit
frame.setExitOnClose(false);
// load pear descriptor
frame.loadAEDescriptor(new File(pearDesc));
// run CVD
frame.runAE(true);
} catch (Throwable e) {
pearConsole.append(" Error in runCVD() " + e.toString());
StringWriter strWriter = new StringWriter();
PrintWriter printWriter = new PrintWriter(strWriter, true);
e.printStackTrace(printWriter);