[ 
https://issues.apache.org/jira/browse/NETBEANS-3730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17024066#comment-17024066
 ] 

Ernie Rael commented on NETBEANS-3730:
--------------------------------------

When you said issue, you meant *issue*. I guess you mean NETBEANS-3104. I'll 
watch that, thanks.

In the meantime, is there any way to debug a javafx maven project? With the 
nbactions and javafx-maven-plugin ver 0.0.4. After clicking the debug icon, I'm 
seeing the below. I'm not sure what the line "Error: JavaFX runtime components 
are missing ..." is indicating. Generic maven problem? Something specific to 
JavaFX? Just found some stackoverflow instructions, I'll try that (ver 0.0.2 of 
plugin, probably can adapt). Is there anywhere on Confluence to put some of 
these tidbits.

> Can't run a newly created project based on "Simple JavaFX Maven Archetype 
> (Gluon)" 
> -----------------------------------------------------------------------------------
>
>                 Key: NETBEANS-3730
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3730
>             Project: NetBeans
>          Issue Type: Bug
>          Components: javafx - Project
>    Affects Versions: 11.2, 11.3
>         Environment: Product Version: Apache NetBeans IDE 11.2
> Java: 11.0.5; OpenJDK 64-Bit Server VM 11.0.5+10-LTS
> Runtime: OpenJDK Runtime Environment 11.0.5+10-LTS
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
>            Reporter: Pavlo Iatsiuk
>            Priority: Major
>         Attachments: 2020-01-22 16_02_03-Window.png
>
>
> Can't run a newly created project based on "Simple JavaFX Maven Archetype 
> (Gluon)" template.
> Run action tries to execute maven exec:exec task (see console output below)
> This template includes org.openjfx:javafx-maven-plugin into the pom.xml. So, 
> action can be changed on javafx:run to run the application.
> Console output:
> {{cd D:\projects\temp\SimpleJavaFXMaven; "JAVA_HOME=C:\\Program Files\\Amazon 
> Corretto\\jdk11.0.5_10" cmd /c 
> "\"\"D:\\soft\\scoop\\apps\\netbeans\\current\\java\\maven\\bin\\mvn.cmd\" 
> -Dexec.args=\"-classpath %classpath com.nems.simplejavafxmaven.App\" 
> -Dexec.executable=\"C:\\Program Files\\Amazon 
> Corretto\\jdk11.0.5_10\\bin\\java.exe\" 
> -Dmaven.ext.class.path=D:\\soft\\scoop\\apps\\netbeans\\current\\java\\maven-nblib\\netbeans-eventspy.jar
>  -Dfile.encoding=UTF-8 org.codehaus.mojo:exec-maven-plugin:1.5.0:exec\""cd 
> D:\projects\temp\SimpleJavaFXMaven; "JAVA_HOME=C:\\Program Files\\Amazon 
> Corretto\\jdk11.0.5_10" cmd /c 
> "\"\"D:\\soft\\scoop\\apps\\netbeans\\current\\java\\maven\\bin\\mvn.cmd\" 
> -Dexec.args=\"-classpath %classpath com.nems.simplejavafxmaven.App\" 
> -Dexec.executable=\"C:\\Program Files\\Amazon 
> Corretto\\jdk11.0.5_10\\bin\\java.exe\" 
> -Dmaven.ext.class.path=D:\\soft\\scoop\\apps\\netbeans\\current\\java\\maven-nblib\\netbeans-eventspy.jar
>  -Dfile.encoding=UTF-8 
> org.codehaus.mojo:exec-maven-plugin:1.5.0:exec\""Running NetBeans Compile On 
> Save execution. Phase execution is skipped and output directories of 
> dependency projects (with Compile on Save turned on) will be used instead of 
> their jar artifacts.Scanning for projects...                                  
>                                       
> ------------------------------------------------------------------------Building
>  SimpleJavaFXMaven 
> 1.0-SNAPSHOT------------------------------------------------------------------------}}
> {{--- exec-maven-plugin:1.5.0:exec (default-cli) @ SimpleJavaFXMaven 
> ---Error: JavaFX runtime components are missing, and are required to run this 
> applicationCommand execution failed.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:764) at 
> org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:711) at 
> org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289) at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
>  at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
>  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 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
> Method) at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>  at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.base/java.lang.reflect.Method.invoke(Method.java:566) 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)------------------------------------------------------------------------BUILD
>  
> FAILURE------------------------------------------------------------------------Total
>  time: 0.605 sFinished at: 2020-01-22T15:01:37+01:00Final Memory: 
> 7M/40M------------------------------------------------------------------------Failed
>  to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec (default-cli) 
> on project SimpleJavaFXMaven: Command execution failed. Process exited with 
> an error: 1 (Exit value: 1) -> [Help 1]}}
> {{To see the full stack trace of the errors, re-run Maven with the -e 
> switch.Re-run Maven using the -X switch to enable full debug logging.}}
> {{For more information about the errors and possible solutions, please read 
> the following articles:[Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException}}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to