Are you looking to run linux commands from the Java application? If so one way I used that works well is:


String[] commandShutdown = {
"gnome-terminal",
"-e",
"sudo /sbin/shutdown -h...