I created a exe file with launch4j but i have a problem. I want to embed the jar into the exe so that it will run from wherever it is called. But it does not seem to unjar properly. If i use dontWrapJar = true, then it searches for a jar file in the current directory. I want to give the user provision to run the exe from wherever he wants....
this is my ant configuration:
<launch4j>
<config headerType="0"
outfile="../Release/Installer.exe"
dontWrapJar="false"
jarPath="../Release/Installer.jar">
<jre minVersion="1.5.0" />
</config>
</launch4j>
Please let me know what is wrong....thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The jar is not extracted if you wrap it, so there is only the exe file which you can run anywhere you want. This behavior doesn't have to be configured in any way, the executable knows it's own path.
Grzegorz
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I created a exe file with launch4j but i have a problem. I want to embed the jar into the exe so that it will run from wherever it is called. But it does not seem to unjar properly. If i use dontWrapJar = true, then it searches for a jar file in the current directory. I want to give the user provision to run the exe from wherever he wants....
this is my ant configuration:
<launch4j>
<config headerType="0"
outfile="../Release/Installer.exe"
dontWrapJar="false"
jarPath="../Release/Installer.jar">
<jre minVersion="1.5.0" />
</config>
</launch4j>
Please let me know what is wrong....thanks
The jar is not extracted if you wrap it, so there is only the exe file which you can run anywhere you want. This behavior doesn't have to be configured in any way, the executable knows it's own path.
Grzegorz