Open dhakehurst opened 4 months ago
I have discoved if I set <chdir>.</chdir>
then the exe can find the jar and it works.
Is this the correct thing to do?
I would prefer/expect the pwd to remain as the directory the user runs the exe from!
Hello,
Have you tried to use
Regards, Andreas
Am Mo., 22. Juli 2024 um 17:36 Uhr schrieb Dr. David H. Akehurst < @.***>:
I have discoved if I set
. then the exe can find the jar and it works.Is this the correct thing to do?
I would prefer/expect the pwd to remain as the directory the user runs the exe from!
— Reply to this email directly, view it on GitHub https://github.com/orphan-oss/launch4j-maven-plugin/issues/388#issuecomment-2243256198, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALJBXWXEENCU2HOHYXJ5W3ZNURH3AVCNFSM6AAAAABLIQID2KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBTGI2TMMJZHA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
from top of my head could you try to use <jarLocation>./lib/</jarLocation>
\<chdir> Optional. Change current directory to an arbitrary path relative to the executable. If you omit this property or leave it blank it will have no effect. Setting it to . will change the current dir to the same directory as the executable. .. will change it to the parent directory, and so on.
Hi, great plugin, however I'm having some issues. I wrap everything into a FAT jar, which I can execute fine. I would like to create a .exe that executes the jar.
I want to end up with a directory structure of
so I have created a configuration that looks like:
I construct my desired directory structure using the assembly plugin. The resulting directory structure is correct, however
If I run
app.exe
from the directory 'app' that the exe sits in, it works fine, but if I run it from some other directory it gives the errorHow do I ensure that the location is relative to the .exe location, not the directory I run the exe from ?