This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Runtime.exec worked but the way that I did it for DOS and UNIX was different. Runtime r = Runtime.getRuntime(); if (System.getProperty("os.name").startsWith("Windows")) sb.append("cmd /C start ").append(instaldir).append("\\MAT\\Kuruvi\\lla\\bin\\runSimulator.bat -p ").append(port); else sb.append("xterm -e ksh ").append(instaldir).append("/MAT/Kuruvi/lla/bin/runSimulator.sh -p ").append(port);
The ksh script for unix did not begin with a #! (hashbang) so I had to begin the command with 'ksh'. If the script had had a hashbang at the beginning, maybe I could have run the script straight away.