fvarrui / JavaPackager

:package: Gradle/Maven plugin to package Java applications as native Windows, MacOS, or Linux executables and create installers for them.
GNU General Public License v3.0
1.07k stars 134 forks source link

Error:could not create the java virtual Machine #333

Closed DoraNancy closed 1 year ago

DoraNancy commented 1 year ago

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: image Could you please tell me where the configuration error caused this issue? Thank you very much Here is my configuration file:

<build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version>
                <configuration>
                    <source>11</source>
                    <target>11</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>io.github.fvarrui</groupId>
                <artifactId>javapackager</artifactId>
                <version>1.6.0</version>
                <configuration>
                    <name>scim-client</name>
                    <bundleJre>true</bundleJre>
                    <mainClass>com.scsoft.scpt.scimclient.StartUp</mainClass>
                    <generateInstaller>true</generateInstaller>
                </configuration>
                <executions>
                    <execution>
                        <id>bundling-for-windows</id>
                        <phase>package</phase>
                        <goals>
                            <goal>package</goal>
                        </goals>
                        <configuration>
                            <platform>windows</platform>
                            <createZipball>true</createZipball>
                            <vmArgs>-XX:+UseZGC</vmArgs>
                            <winConfig>
                                <!--https://github.com/fvarrui/JavaPackager/blob/master/docs/windows-specific-properties.md-->
                                <icoFile>${project.basedir}/src/main/resources/ico/scim.ico</icoFile>
                            </winConfig>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
[INFO]         Compiler engine version: Inno Setup 5.6.1 (a)
[ERROR]         Error on line 24 in D:\Idea_workSpace\im\scim-client\target\assets\scim-client.iss: Unrecognized [Setup] section directive "PrivilegesRequiredOverridesAllowed"
[INFO]
[ERROR]         Compile aborted.
[INFO]         [ISPP] Preprocessing.
[INFO]         [ISPP] Preprocessed.
[INFO]
[INFO]         Parsing [Setup] section, line 11
[INFO]         Parsing [Setup] section, line 12
[INFO]         Parsing [Setup] section, line 13
[INFO]         Parsing [Setup] section, line 14
[INFO]         Parsing [Setup] section, line 15
[INFO]         Parsing [Setup] section, line 16
[INFO]         Parsing [Setup] section, line 17
[INFO]         Parsing [Setup] section, line 18
[INFO]         Parsing [Setup] section, line 19
[INFO]         Parsing [Setup] section, line 20
[INFO]         Parsing [Setup] section, line 21
[INFO]         Parsing [Setup] section, line 22
[INFO]         Parsing [Setup] section, line 23
[INFO]         Parsing [Setup] section, line 24
[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)
fvarrui commented 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?

DoraNancy commented 1 year ago

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- XX:+UseZGCfrom the configuration file. When packaging, another error was reported, but the package was successful and can be run. It's just that it's not an installation package, but an exe that can be run directly

[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] ------------------------------------------------------------------------
fvarrui commented 1 year ago

Hi @DoraNancy! Did you install Inno Setup and WiX Toolset? (find instructions here)

fvarrui commented 1 year ago

Due to lack of activity, I close this topic. If the problem persists, please don't hesitate to reopen it.