Hellboyz
May 19th, 2010, 03:20 PM
Hello, I have a problem that I just can't figure out and to me makes absolutely no sense.
Runtime.getRuntime().exec("java -jar GiSE_Updater.jar");
The code above will not work on the main application. I've tried different variations of the same code but nothing. One day it just stopped working and no matter how hard I try it will not continue to work.
I've made test applications with only that line of code in it and they work flawlessly. I don't see how the same code can have two different effects when as far as I can see they are in the same exact situation.
I've checked my code many times and I've even set that line of code as the very first line of code in my application but yet it still will not work. It works in Netbeans but after I try using it outside of Netbeans it will not work. No errors no nothing. Just doesn't work.
Runtime.getRuntime().exec("java -jar GiSE_Updater.jar");
The code above will not work on the main application. I've tried different variations of the same code but nothing. One day it just stopped working and no matter how hard I try it will not continue to work.
I've made test applications with only that line of code in it and they work flawlessly. I don't see how the same code can have two different effects when as far as I can see they are in the same exact situation.
I've checked my code many times and I've even set that line of code as the very first line of code in my application but yet it still will not work. It works in Netbeans but after I try using it outside of Netbeans it will not work. No errors no nothing. Just doesn't work.