Closed JasonCao1024 closed 1 year ago
Hi @AlexanderCaoyu! Please, try the latest JP version: 1.7.3
Hi@AlexanderCaoyu!Please, try the latest JP version: 1.7.3 Thank you! But I tried to switch to version 1.7.3, the error message still appears
[ERROR] Failed to execute goal io.github.fvarrui:javapackager:1.7.3:package (default) on project javafx: org.apache.maven.plugin.MojoExecutionException: Failed to build the executable; please verify your configuration.: net.sf.launch4j.ExecException: Exec failed (1): D:\1、java\mvn\net\sf\launch4j\launch4j\3.50\launch4j-3.50-workdir-win32\bin\windres.exe --preprocessor=type -J rc -O coff -F pe-i386 C:\Users\ALEXAN~1\AppData\Local\Temp\launch4j6720689567674490477rc C:\Users\ALEXAN~1\AppData\Local\Temp\launch4j5459996924865524997o -> [Help 1][ERROR] Failed to execute goal io.github.fvarrui:javapackager:1.7.3:package (default) on project javafx: org.apache.maven.plugin.MojoExecutionException: Failed to build the executable; please verify your configuration.: net.sf.launch4j.ExecException: Exec failed (1): D:\1、java\mvn\net\sf\launch4j\launch4j\3.50\launch4j-3.50-workdir-win32\bin\windres.exe --preprocessor=type -J rc -O coff -F pe-i386 C:\Users\ALEXAN~1\AppData\Local\Temp\launch4j6720689567674490477rc C:\Users\ALEXAN~1\AppData\Local\Temp\launch4j5459996924865524997o -> [Help 1]
Are you setting any ICO file by storing it in assets dir?
Did you manage to fix it? 😮
Are you setting any ICO file by storing it in assets dir?
No, I didn't set up any ICO files.
Did you manage to fix it? 😮
Sorry, I just clicked the wrong one.😂
May I ask whether this is related to the operating system, my own operating system is Win11. But it can executed normally on another computer with Win10 operating system.😢
Maybe it could be related to different Java development environments.
Please, could you share mvn -v
output on both systems?
Maybe it could be related to different Java development environments. Please, could you share
mvn -v
output on both systems?
OK,. This is output with Win10 OS
And this is Win11 OS,Which was upgraded last year
How can you build your app with Maven on Windows 10 if JAVA_HOME
env variable is not defined?
Please, can you manually run this command just after a failed build?
D:\1、java\mvn\net\sf\launch4j\launch4j\3.50\launch4j-3.50-workdir-win32\bin\windres.exe --preprocessor=type -J rc -O coff -F pe-i386 C:\Users\ALEXAN1\AppData\Local\Temp\launch4j6720689567674490477rc C:\Users\ALEXAN1\AppData\Local\Temp\launch4j5459996924865524997o
Extracted from your output as an example ... not sure if you censored or changed it before publish it
How can you build your app with Maven on Windows 10 if
JAVA_HOME
env variable is not defined?
I don't know, but I've been building projects on IDEA
D:\1、java\mvn\net\sf\launch4j\launch4j\3.50\launch4j-3.50-workdir-win32\bin\windres.exe --preprocessor=type -J rc -O coff -F pe-i386 C:\Users\ALEXAN1\AppData\Local\Temp\launch4j6720689567674490477rc C:\Users\ALEXAN1\AppData\Local\Temp\launch4j5459996924865524997o
Ok, but it tells me that the system cannot find the file specified
Is this path right D:\1、java\mvn\net\sf\launch4j\launch4j\3.50\launch4j-3.50-workdir-win32\bin\windres.exe
?
Maybe a weird character in any path on your environment settings? ... I seem to remember that launch4j doesn't support CJK characters in paths
Is this path right
D:\1、java\mvn\net\sf\launch4j\launch4j\3.50\launch4j-3.50-workdir-win32\bin\windres.exe
?
Yes,It's right
Maybe a weird character in any path on your environment settings? ... I seem to remember that launch4j doesn't support CJK characters in paths
Thrank you , you are right. After I changed the path 'D:\1、java' to 'D:\java', it succeeded😊
Great!!! 😃
This is error message:
[ERROR] Failed to execute goal io.github.fvarrui:javapackager:1.6.7:package (default) on project javafx: org.apache.maven.plugin.MojoExecutionException: Failed to build the executable; please verify your configuration.: net.sf.launch4j.ExecException: Exec failed (1): D:\1、java\mvn\net\sf\launch4j\launch4j\3.14\launch4j-3.14-workdir-win32\bin\windres.exe --preprocessor=type -J rc -O coff -F pe-i386 C:\Users\ALEXAN~1\AppData\Local\Temp\launch4j8568450954283583138rc C:\Users\ALEXAN~1\AppData\Local\Temp\launch4j660789751684011149o -> [Help 1
This is my pom.xml:
My current java version is 1.8, and the above error occurred when executing the package