Menu

dontWrapJar Option?

sujie
2007-10-10
2013-06-12
  • sujie

    sujie - 2007-10-10

    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

     
    • Grzegorz Kowal

      Grzegorz Kowal - 2007-10-23

      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

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.