-
-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to start the software by double clicking the icon #25
Comments
Try downloading a fresh copy of the template and comment out loading the "plugins" in BaseApplication.java as described on the README (I just updated). |
Oh, and also try running mvn javafx:run to see if you can get the app to launch at all. |
@wiverson downloaded fresh copy of template and failed to run with |
forgot to post the stack trace (java:10881): Gdk-WARNING **: 10:25:21.660: XSetErrorHandler() called with a GDK error trap pushed. Don't do that. |
mvn clean install
and successfully generated thetestapp_21.32.012058-1_amd64.deb
. Installed it successfully. But while double clicking on the icon nothing happens. Hence I have downloaded the.deb
file from github, installed and tried to run and again nothing happens. Then stripped out the maven-jpackage-template-1.0-SNAPSHOT.jar from .deb file and run in terminal and got stack traceno main manifest attribute, in maven-jpackage-template-1.0-SNAPSHOT.jar
mvn clean install
.Everything is OK and fine up to[INFO] --- jtoolprovider-plugin:1.0.34:java-tool (jlink) @ maven-jpackage-template
--- in the run log. After that get the following error[ERROR] jlink failed with error code [1]
[ERROR] --add-modules
[ERROR] javafx-controls,javafx.fxml,java.logging
[ERROR] --module-path
[ERROR] /home/user/eclipse-workspace/Demo/linux-javafx/javafx-jmods-16/
[ERROR] --output
[ERROR] /home/user/eclipse-workspace/Demo/target/jvm-image
[ERROR] --strip-native-commands
[ERROR] --no-header-files
[ERROR] --strip-debug
[ERROR] --no-man-pages
[ERROR] --compress=2
[INFO] Error: Module javafx.fxml not found
java.lang.module.FindException: Module javafx.fxml not found
at java.base/java.lang.module.Resolver.findFail(Resolver.java:900)
at java.base/java.lang.module.Resolver.resolve(Resolver.java:128)
at java.base/java.lang.module.Configuration.resolve(Configuration.java:421)
at java.base/java.lang.module.Configuration.resolve(Configuration.java:255)
at jdk.jlink/jdk.tools.jlink.internal.Jlink$JlinkConfiguration.resolve(Jlink.java:217)
at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.createImageProvider(JlinkTask.java:489)
at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.createImage(JlinkTask.java:399)
at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.run(JlinkTask.java:271)
at jdk.jlink/jdk.tools.jlink.internal.Main.run(Main.java:54)
at jdk.jlink/jdk.tools.jlink.internal.Main$JlinkToolProvider.run(Main.java:65)
at java.base/java.util.spi.ToolProvider.run(ToolProvider.java:138)
at io.github.wiverson.RunTool.runTool(RunTool.java:109)
at io.github.wiverson.ToolProviderAdapterHints.execute(ToolProviderAdapterHints.java:276)
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:957)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
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] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.838 s
[INFO] Finished at: 2021-08-12T21:47:05+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.github.wiverson:jtoolprovider-plugin:1.0.34:java-tool (jlink) on project Demo: jlink 1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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
Please help me to make the installer successfully
The text was updated successfully, but these errors were encountered: