Runtime.exec() in jar

Hi i wanted to exec an aplication in my aplication. My aplication is in jar file. When i run my aplication by duble-click (no command box is showed) Runtime.exec() doesn't work (gives IOException Creating Process anotheraplicationpath error=5), but when i run it from cmd and command box isn't hided it works. When I run it in eclipse(command box is shown) it works too, but I must do that so that command box won't be shown

My OS is Win XP professional, i use JRE 1.5 Update 6

PS. Sorry for my bad English

[528 byte] By [_Hacker_a] at [2007-10-2 20:35:10]
# 1

Using Runtime.exec( ) should not give you any problems from jar file. It should be done using the application's full path

ie

File myexe = new File("resouces/myexe.exe");

try {

Runtime.exec( myexe.getAbsolutePath() );

} catch(Exception e) {

e.printStackTrace();

}

Post a sample code for a better solution to this problem

ICE

icewalker2ga at 2007-7-13 23:18:22 > top of Java-index,Desktop,Developing for the Desktop...