-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dontWrapJar causes 'Could not find or load main class' #388
Comments
I have discoved if I set 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 <preCp> in classpath?
<classPath>
...
<preCp>.</preCp>
</classPath>
Regards,
Andreas
Am Mo., 22. Juli 2024 um 17:36 Uhr schrieb Dr. David H. Akehurst <
***@***.***>:
… 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!
—
Reply to this email directly, view it on GitHub
<#388 (comment)>,
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 |
|
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 error
How do I ensure that the location is relative to the .exe location, not the directory I run the exe from ?
The text was updated successfully, but these errors were encountered: