I need a java code to allow me to run this notepad and open a specified file, for example :
String []a={"C:/Users/day/Desktop/a.txt"};
Process p = Runtime.getRuntime().exec("notepad",a);
This code runs notepad but does not open the file a.txt.
What can be the problem ?