Closed ravenp1992 closed 6 years ago
I even tried the fxldemo I got the same error after mvn clean install. :cry:
The command you executes results in the following error message from javapackager
:
Unrecognized option: -m Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. [INFO
As far as I can see though, your command line doesn't include any -m
option. Try constructing the comma separated list of options to a valid command and execute it in the shell to see what javapackager says then :)
Thanks @edvin I already fix the problem. I don't know what happened but it works after reinstalling the JDK. :thinking: anyway thanks again I really appreciate your help.
Great :)
This is the first time that I get this error after using this for almost 2 years. I hope you can help me.
Error:
[DEBUG] Executing command line: [javapackager, -deploy, -native, -outdir, /home/users/ravenp/Workspace/Java_Projects/cloudstaffcommunicator/target/installer, -outfile, CommunicatorApp, -srcdir, /home/users/ravenp/Workspace/Java_Projects/cloudstaffcommunicator/target/app, -srcfiles, fxlauncher.jar, -appclass, fxlauncher.Launcher, -name, Communicator, -title, Communicator, -vendor, Cloudstaff INC, -BappVersion=1.0, -Bidentifier=com.cloudstaff.cloudstaff.communicator] Unrecognized option: -m Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.408 s [INFO] Finished at: 2018-07-19T11:44:53+08:00 [INFO] Final Memory: 31M/384M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:exec (installer) on project cloudstaff.communicator: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:exec (installer) on project cloudstaff.communicator: Command execution failed. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) Caused by: org.apache.maven.plugin.MojoExecutionException: Command execution failed. at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:276) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) ... 20 more Caused by: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166) at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:660) at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:265) ... 22 more [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Code: `<?xml version="1.0" encoding="UTF-8"?>
`