[ubuntu] Installing a software from Java Projects

view story

http://ubuntuforums.org – Hello, what I would like to achieve is installing a software from java application that I created. I've got permission with gksudo. Then, I typed my pass and the program started working until yes/no option was appeared. How can I pass this question ? Code: installation =Runtime.getRuntime().exec(new String[]{"gksudo","apt-get","install","PACKAGE"}); Code: inputSw = new BufferedReader(new InputStreamReader(installation.getInputStream())); Code: while( (lineSw=inputSw.readLine())!=null)  {           &nbsp (Hardware)