I'm trying to run .exe
file from my java file.
If I run this .exe
console program manualy by double clicking, it does everything it should.
If I run it from my .jar file by using this:
ProcessBuilder x = new ProcessBuilder("\"" + myLocation + "\\1.exe\"");
x.start();
It runs a cmd window with a title like C:\user\Josh\1.exe, but it does nothing. It does not do anything what this .exe file should do.
Everything what is in this console window is:
Microsoft Windows Copyright.. etc..
just typical thing what appears when you run simply cmd.exe
I am really hopeless, please help. I tried to do it using this:
Process xx = Runtime.getRuntime().exec(aa);
where aa is location of file, but it does the same thing.