I want to run some commands from Java, but the following program does not print out the expected result. Any ideas?
import java.io.IOException;
public class MyClass {
public static void main(String args[]) throws IOException {
Process p = new ProcessBuilder("gcc", "--version").start();
}
}