Hi everyone!
I recently created an application and successfully jarred this to c:/my/folder/app.jar. It works like a charm in the following case [Startup #1]:
- Open cmd
- cd to c:/my/folder
- java -jar app.jar
But when I do this, it doesn't work [Startup #2]:
- Open cmd
- cd to c:/my/
- java -jar folder/app.jar
Because app.jar contains a .exe-file which I try to run in my application:
final Process p = Runtime.getRuntime().exec("rybka.exe");
It won't work in example 2 because it can't find the file rybka.exe.
Any suggestions?