Closed JoseJuan1011 closed 2 years ago
Hi @VegasBeats!
You have to install WiX Toolset on your Windows system as it includes the candle
and light
tools used by JavaPackager to generate MSI installers.
It's explained in docs:
There's also a guide explaining how to install it easily.
Thanks for using JavaPackager!
Oh! If you prefer, you can also skip the MSI generation with winConfig.generateMsi=false
<plugin>
<groupId>io.github.fvarrui</groupId>
<artifactId>javapackager</artifactId>
<version>1.6.6</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>package</goal>
</goals>
<configuration>
<mainClass>fvarrui.sample.Main</mainClass>
<bundleJre>true</bundleJre>
<winConfig>
<generateMsi>false</generateMsi>
</winConfig>
</configuration>
</execution>
</executions>
</plugin>
At the end I have used the second option, but I don't know why I can't execute it, I have used the configuration that you have specified, the app executes itself when I compile it with maven and execute it and it works perfectly. Then I package it and install it with the exe, and it doesn't work either normal or with the installation process. Thanks in advance.
You can see what is going wrong with your EXE by setting winConfig.headerType=console
and running you app from a terminal. Are you using JavaFX or resources embedded in your app (resources/some.file
)?
You can also try running the generated JAR, because if it doesn't work, your EXE won't either. If you run the runnable
JAR, it needs you copy libs
folder next to it before running.
Currently im using JavaFx on the app, and I have saw that the exe has problems with the javafx views unfortunately, so what should I do in case of a JavaFx App?
Please, could you share here the error message?
I have the log with the errors, so here you have them, it's a mix beetween javafx and other errors maybe because problems with javafx properties in background. Conejitos.log
I've just realized that you are JJ 😃 ... Do you have your project on a public repo?
I can invite you to my private repo, where I have the project that Im having trouble making the executable with.
Look at your invitations, I have sent you an invitation for it.
Ok, I'll try to have a look into it ASAP
At the end the problem was that I didn't put an Upper Case where I needed to (JavaFx view route declaring the loader), that was for solving the first issue.
And the second, which didn't let me use the login, was because the javapackager sometimes doesn't package (for everyone's understanding) some libraries, so it's important to put the following lines of code in case you have a related issue, where there's a problem in passing data from Interface to Backend, between other related issues:
<customizedJre>false</customizedJre>
I'm submitting a…
Short description of the issue/suggestion:
I'm having trouble trying to package an app using the minimal configuration, because it says that I don't have the candle installed.
Steps to reproduce the issue/enhancement:
What is the expected behavior?
It will create the executable without giving any exeptions.
What is the current behavior?
It gives an error saying that candle as a command doesn't exist.
Do you have outputs, screenshots, demos or samples which demonstrate the problem or enhancement?
This is my plugin configuration:
And this is the error on the output:
What is the motivation / use case for changing the behavior?
Because I want to create an executable for other person to use the app.
Please tell us about your environment:
Other information (e.g. related issues, suggestions how to fix, links for us to have context)