Eclipse execute a file in jar
Posted
by
hara
on Stack Overflow
See other posts from Stack Overflow
or by hara
Published on 2011-03-15T16:04:20Z
Indexed on
2011/03/15
16:10 UTC
Read the original article
Hit count: 401
Hi
I'm developing an Eclipse product. In my plugin i have added an executable file (.exe) which i need to execute. When i launch the product from the eclipse, the file is referenced using the path of the executable on my file system and all went ok.
When i export the product the plugin is packaged in a jar file which contains the executable file too. When it references the file the path is something like :
$path_to_the_plugin_jar!/$path_to_exe_file_inside_the_jar
Using this path to launch a new Process Thrown an exception.
How can i refer to a file inside a jar?How could i execute the file?
Can i extract the file when i export the product with eclipse?
thanks
© Stack Overflow or respective owner