public class Main { public static void main(String[] args) { final ProcessBuilder pb = new ProcessBuilder( "c:\\python34\\pythonw.exe", "-u", "usi.py"); pb.inheritIO(); try { pb.start().waitFor(); } catch (IOException | InterruptedException e) { e.printStackTrace(); } } }