I can't use Process("dir/e.exe") because e needs to be executed on its own directory, if not it can't access to its resources. But i receive an exception whenever i try to change the working directory:
Process("e.exe", new File(dir))
Process("e.exe", new File("\"+ dir))
Process("e.exe", new File(new File(dir).getCanonicalPath()))
Caused by: java.io.IOException: Cannot run program "e.exe" (in directory ".
\dir"): CreateProcess error=2, The system cannot find the file specified
These do not work, they give me exactly the same error. Any alternative?
EDIT: This is how looks my directory:
MyFolder:
|-app.jar
|-folderWithExe
\-e.exe