This content has been marked as final. Show 2 replies
You need to place the EXE and DLLs inside the jar.
Java cannot execute them from the jar. They have to be extracted (see Class.getResourceAsStream) from the jar and copyied into the target machine file system, perahps to the temp directory. Now you can execute them using Runtime.exec() or ProcessBuilder.start().
Edited by: baftos on Jan 14, 2011 6:49 PM
I think there is a trick and/or best practice regarding that via webstart.
I remember discussions about that which I believe appeared in the JNI forum in terms of extracting shared libraries. Same idea would apply.