Closed DoraNancy closed 1 year ago
Hi @DoraNancy!
The error in the exe could be due to some unrecognized character. Could you try the latest version released 1.7.2? You could also try generating the EXE with Why or WinRun4j.
In the case of the error generating the Setup, are you using a custom iss.vtl template?
The error when generating the MSI seems to be because WiX Toolset is not installed. It's right?
Firstly, thank you very much for your answer and help. I tried using the latest version 1.7.2, but my local JDK version is 11. When using 1.7.2 to call jdeps, there is a parameter - ignore... The command cannot be found. It should be supported by a higher version of JDK.
Additionally, I attempted to delete
[ERROR] Setup installer generation failed due to: Command execution failed: iscc /OD:\Idea_workSpace\im\scim-client\target /Fscim-client_2.0-SNAPSHOT D:\Idea_workSpace\im\scim-clien
t\target\assets\scim-client.iss
[ERROR]
org.codehaus.plexus.util.cli.CommandLineException: Command execution failed: iscc /OD:\Idea_workSpace\im\scim-client\target /Fscim-client_2.0-SNAPSHOT D:\Idea_workSpace\im\scim-client\t
arget\assets\scim-client.iss
at io.github.fvarrui.javapackager.utils.CommandUtils.execute (CommandUtils.java:19)
at io.github.fvarrui.javapackager.utils.CommandUtils.execute (CommandUtils.java:25)
at io.github.fvarrui.javapackager.packagers.GenerateSetup.doApply (GenerateSetup.java:62)
at io.github.fvarrui.javapackager.packagers.GenerateSetup.doApply (GenerateSetup.java:18)
at io.github.fvarrui.javapackager.packagers.ArtifactGenerator.apply (ArtifactGenerator.java:44)
at io.github.fvarrui.javapackager.packagers.Packager.generateInstallers (Packager.java:435)
at io.github.fvarrui.javapackager.maven.PackageMojo.execute (PackageMojo.java:371)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[INFO]
[INFO] Generating MSI merge module...
[INFO] WXS file generated in D:\Idea_workSpace\im\scim-client\target\assets\scim-client.msm.wxs!
[INFO] Compiling file D:\Idea_workSpace\im\scim-client\target\assets\scim-client.msm.wxs
[INFO] Executing command: cmd.exe /s /c "candle -out D:\Idea_workSpace\im\scim-client\target\assets\scim-client.msm.wixobj D:\Idea_workSpace\im\scim-client\target\assets\scim-cl
ient.msm.wxs"
[ERROR] 'candle' 不是内部或外部命令,也不是可运行的程序
[ERROR] 或批处理文件。
[ERROR] MSI merge module generation failed due to: Command execution failed: candle -out D:\Idea_workSpace\im\scim-client\target\assets\scim-client.msm.wixobj D:\Idea_workSpace\im\s
cim-client\target\assets\scim-client.msm.wxs
[ERROR]
org.codehaus.plexus.util.cli.CommandLineException: Command execution failed: candle -out D:\Idea_workSpace\im\scim-client\target\assets\scim-client.msm.wixobj D:\Idea_workSpace\im\scim-
client\target\assets\scim-client.msm.wxs
at io.github.fvarrui.javapackager.utils.CommandUtils.execute (CommandUtils.java:19)
at io.github.fvarrui.javapackager.utils.CommandUtils.execute (CommandUtils.java:25)
at io.github.fvarrui.javapackager.packagers.GenerateMsm.doApply (GenerateMsm.java:59)
at io.github.fvarrui.javapackager.packagers.GenerateMsm.doApply (GenerateMsm.java:15)
at io.github.fvarrui.javapackager.packagers.ArtifactGenerator.apply (ArtifactGenerator.java:44)
at io.github.fvarrui.javapackager.packagers.Packager.generateInstallers (Packager.java:435)
at io.github.fvarrui.javapackager.maven.PackageMojo.execute (PackageMojo.java:371)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[INFO]
[INFO] Generating MSI installer...
[INFO] WXS file generated in D:\Idea_workSpace\im\scim-client\target\assets\scim-client.msm.wxs!
[INFO] Compiling file D:\Idea_workSpace\im\scim-client\target\assets\scim-client.msm.wxs
[INFO] Executing command: cmd.exe /s /c "candle -out D:\Idea_workSpace\im\scim-client\target\assets\scim-client.msm.wixobj D:\Idea_workSpace\im\scim-client\target\assets\scim-cl
ient.msm.wxs"
[ERROR] 'candle' 不是内部或外部命令,也不是可运行的程序
[ERROR] 或批处理文件。
[ERROR] MSI installer generation failed due to: Command execution failed: candle -out D:\Idea_workSpace\im\scim-client\target\assets\scim-client.msm.wixobj D:\Idea_workSpace\im\scim
-client\target\assets\scim-client.msm.wxs
[ERROR]
org.codehaus.plexus.util.cli.CommandLineException: Command execution failed: candle -out D:\Idea_workSpace\im\scim-client\target\assets\scim-client.msm.wixobj D:\Idea_workSpace\im\scim-
client\target\assets\scim-client.msm.wxs
at io.github.fvarrui.javapackager.utils.CommandUtils.execute (CommandUtils.java:19)
at io.github.fvarrui.javapackager.utils.CommandUtils.execute (CommandUtils.java:25)
at io.github.fvarrui.javapackager.packagers.GenerateMsm.doApply (GenerateMsm.java:59)
at io.github.fvarrui.javapackager.packagers.GenerateMsi.doApply (GenerateMsi.java:40)
at io.github.fvarrui.javapackager.packagers.GenerateMsi.doApply (GenerateMsi.java:16)
at io.github.fvarrui.javapackager.packagers.ArtifactGenerator.apply (ArtifactGenerator.java:44)
at io.github.fvarrui.javapackager.packagers.Packager.generateInstallers (Packager.java:435)
at io.github.fvarrui.javapackager.maven.PackageMojo.execute (PackageMojo.java:371)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[INFO]
[INFO] Installers generated! []
[INFO]
[INFO] Creating bundles ...
[INFO] Reading assembly descriptor: D:\Idea_workSpace\im\scim-client\target\assets\assembly-zipball-windows.xml
[INFO] Building zip: D:\Idea_workSpace\im\scim-client\target\scim-client-2.0-SNAPSHOT-windows.zip
[INFO] Zipball created: D:\Idea_workSpace\im\scim-client\target\scim-client-2.0-SNAPSHOT-windows.zip
[INFO] Bundles created!
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 48.608 s
[INFO] Finished at: 2023-05-31T14:46:45+08:00
[INFO] ------------------------------------------------------------------------
Hi @DoraNancy! Did you install Inno Setup and WiX Toolset? (find instructions here)
Due to lack of activity, I close this topic. If the problem persists, please don't hesitate to reopen it.
I packaged a Javafx11 project using version 1.6.0, and the packaging process was very smooth without any errors. However, when I ran the exe file, Windows prompted me Error:could not create the java virtual Machine Error:A fatal exception has occurred.Program will exit. Just like this: Could you please tell me where the configuration error caused this issue? Thank you very much Here is my configuration file: