I need to open a txt file but from the console but from an application that opens txt, in the event of the button you should open the txt as if you were opening from the operating system, I use GNU / linux (Debian)
If something serves you search the internet and I just found this and that was my adaptation to the code
try {
ProcessBuilder p=new ProcessBuilder();
p.command("/home/hp/Escritorio/ventas/reporte.txt");
p.start();
} catch (IOException ex) {
Logger.getLogger(Registro.class.getName()).log(Level.SEVERE, null, ex);
}
but you send me an error
java.io.IOException: Cannot run program "/home/hp/Escritorio/ventas/reporte.txt": error=13, Permiso denegado
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
Thanks, I hope any help or the right way to do it