public void run() {
int exitVal = 0;
try {
String[] cmd = { "cmd.exe", "/c", "\"" + filename + "\"" }; //$NON-NLS-1$ //$NON-NLS-2$
Process proc = Runtime.getRuntime().exec(cmd);
StreamGobbler errorGobbler = new StreamGobbler(proc.getErrorStream(), "ERROR"); //$NON-NLS-1$
StreamGobbler outputGobbler = new StreamGobbler(proc.getInputStream(), "OUTPUT"); //$NON-NLS-1$
errorGobbler.start();
outputGobbler.start();
exitVal = proc.waitFor();
} catch (IOException iox) {
logger.error(Labels.getString("CSVViewerDialog.errorExternal"), iox); //$NON-NLS-1$
} catch (InterruptedException ie) {
logger.error(Labels.getString("CSVViewerDialog.errorExternal"), ie); //$NON-NLS-1$