How can I open vi editor from my java application?
I have already tried this
Process p = new ProcessBuilder("xterm","-e","vi /backup/xyz/test/abc.txt").start();
int exitVal = p.waitFor();
System.out.println("Exited with error code "+exitVal);
But this opens vi in a new terminal. I want the vi editor to open in the same terminal that my application is running