How can I run a file (like an exe program) using java? I have searched up how to open a file (even on oracle docs) to no avail. Is there a class to help me with this? I tried
try
{
Runtime rt = Runtime.getRuntime() ;
Process p => rt.exec("Program.exe") ;
InputStream in = p.getInputStream() ;
OutputStream out = p.getOutputStream ();
InputSream err = p.getErrorStream() ;
p.destroy() ;
}
catch(Exception exc)
{
}
But it didn't work