-
Notifications
You must be signed in to change notification settings - Fork 4
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
Ceate native installers does not work after embedding custom ui #1
Comments
I'm guessing you didn't embed the code correctly, and ended up with an invalid jar. Can you post the jar and/or the pom.xml here? |
Thank's for the reply, you're right with the invalid jar. The execution adding the custom style classes makes the jar invalid. I can*t figure out why, because I am doing everything exactly as demonstrated in the instruccions. I just added my pom.xml and the resulting invalid fxlauncher.jar. |
So what happens is that I'm not sure why that last jar step would remove jar uef fxlauncher.Launcher fxlauncher.jar Can you show me the contents (tree) of |
It might be because the classes folder contains a MANIFEST.MF file too. This MANIFEST ist autogenerated by eclipse within the maven compile phase. But the more probable would be that the existing MANIFEST file if the jar gets overwritten but deleted?!
|
I don't understand how Eclipse is involved in the maven compile phase? Do you have some kind of eclipse specific plugin in your maven config? |
No, there isn't any specific Eclipse plugin in the maven config. I am using your custom ui sample project and also in the pom.xml of my FX application there is nothing depending on eclipse. What I wanted to say is, that eclipse automatically executes the maven compile phase for every project in the workspace. I hadn't to compile your custom ui example before executing the maven install on my FX application project. The required sources (class files etc.) in the target folder of the custom ui project already existed because of the auto compile. The target/classes/META-INF folder of the custom ui project contains a MANIFEST.MF file. This could be what's causing the problem when executing the following step in the FX application using fx launcher:
|
for others maybe.. doing an install with mvn on eclipse indeed creates an extra Manifest.mf which will then lead to a corrupt jar. |
I am using FXLauncher to enable auto updating my FX Application. I realized the maven build according to the demo project and everything worked fine. As next step I tried to embed a custom ui following the instruccions of the demo video on youtube using the here provided demo project. After adding the additional execution required to embed the custom ui into the fylauncher.jar, the execution of the javapackager to create the native installers isn`t executed any more with the following log:
The text was updated successfully, but these errors were encountered: