Move terminal to java