Hi, While using "Java with Maven"->FXML JavaFX Maven Archtype" works fine to run its pre-configured App.java, creating a new package with a new main class fails to compile with the following error. Any insights on which resources need to be modified? Thanks in advance. Error msg:Error: JavaFX runtime components are missing, and are required to run this application Command 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: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 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:564) 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) ------------------------------------------------------------------------ BUILD FAILURE ------------------------------------------------------------------------ Total time: 5.034 s Finished at: 2020-08-10T14:49:10+04:30 ------------------------------------------------------------------------ Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec (default-cli) on project Mavenbasedlearningfx: Command execution failed.: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
On Thursday, August 6, 2020, 9:05:32 AM GMT+4:30, HRH <hrh...@yahoo.com> wrote: Thank you, using JavaWithMaven worked. On Wednesday, August 5, 2020, 11:40:52 PM GMT+4:30, Ernie Rael <err...@raelity.com> wrote: The easiest way to run jfx with NetBeans is through maven. In NetBeans you can do NewProject.. > JavaWithMaven > "Simpe JavaFX Maven Archetype" (or the FXML one if that's what you're after) This gives you a simple project that you can run and debug. -ernie On 8/5/2020 11:52 AM, HRH wrote: > Hi, > > Trying to build a JavaFX project with Netbeans 12.0 IDE, using the > online documentation Getting Started with JavaFX > <https://openjfx.io/openjfx-docs/#IDE-NetBeans> > > > > > > Getting Started with JavaFX > > Getting started with JavaFX for Java desktop application development > > <https://openjfx.io/openjfx-docs/#IDE-NetBeans> > In step 3 of this page, adding the JavaFX12 to the library, I don't > seem to locate such a library from the dropdown list. Please help. > > Thanks > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists