package org.cipres.kepler.jrun; import org.cipres.helpers.GUIRun; public class GUIRunTester { /** * @param args */ public static void main(String[] args) { try { GUIRun grun = new GUIRun("ClustalW"); grun.setExecutable("/Users/borchers/work/ClustalW/clustalw"); grun.setUIXMLFile("/Users/borchers/work/ClustalW/clustalw.xml"); grun.setArgumentsWithGUIGen(); grun.setOutputFilename("/Users/borchers/work/ClustalW/runout"); grun.setErrorFilename("/Users/borchers/work/ClustalW/runerror"); grun.setWorkingDirPath("/Users/borchers/work/ClustalW/"); grun.setWaitForExecution(true); System.out.println(grun.execute()); System.out.println(grun.getExitCode()); System.out.println("Standard Output: \n" + grun.getStandardOutput()); System.out.println("Standard Error: \n" + grun.getStandardError()); System.exit(0); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } }