Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Help in Setting JavaFX 11 SDK in Eclipse 2019-06(I'd appreciate if someone could tell the right way to set up JavaFX 11 JDK)
Help in Setting JavaFX 11 SDK in Eclipse 2019-06 [message #1809820] Tue, 23 July 2019 21:30 Go to next message
Gabriel Numa Parreño is currently offline Gabriel Numa ParreñoFriend
Messages: 4
Registered: July 2019
Junior Member
Hi:
I've downloaded JavaFX 11 from gluonhq.com / products / javafx / (sorry no external link permited)
and tried to do the set up in Eclipse 2019-06 with Java 12 as JDK using this way openjfx.io / openjfx-docs / (sorry no external link permited)
where it says: JavaFX and Eclipse->Non-Modular from Ide.

In eclipse I did windows->preferences->Java->Build Path->User Libraries
and also JavaFX->JavaFX11 + SDK (see photos attached)

index.php/fa/35992/0/
index.php/fa/35993/0/

I also added a VM Configuration in Run->Run Configuration ... ->Java Aplication

--module-path "C:\Program Files\Java\javafx-sdk-11.0.2\lib" --add-modules javafx.controls,javafx.fxml

to get rid of this error: JavaFX runtime components are missing, and are required to run this application

I followed all the steps and also downloaded the Hello World project to try but I never managed to make it work.

I was wandering if someone with more experience with Eclipse could tell me a way to set up this OR what is wrong since I keep getting the following error:

Exception in Application start method
java.lang.reflect.InvocationTargetException
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:567)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:464)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:363)
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:567)
at java.base/sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:1051)
Caused by: java.lang.RuntimeException: Exception in Application start method
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:900)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
at java.base/java.lang.Thread.run(Thread.java:835)
Caused by: javafx.fxml.LoadException:
/C:/Users/Gabriel/eclipse-workspace/KioskApp/bin/prueba/hellofx.fxml:7

at javafx.fxml/javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2625)
at javafx.fxml/javafx.fxml.FXMLLoader.access$700(FXMLLoader.java:105)
at javafx.fxml/javafx.fxml.FXMLLoader$ValueElement.processAttribute(FXMLLoader.java:930)
at javafx.fxml/javafx.fxml.FXMLLoader$InstanceDeclarationElement.processAttribute(FXMLLoader.java:980)
at javafx.fxml/javafx.fxml.FXMLLoader$Element.processStartElement(FXMLLoader.java:227)
at javafx.fxml/javafx.fxml.FXMLLoader$ValueElement.processStartElement(FXMLLoader.java:752)
at javafx.fxml/javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:2722)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2552)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2466)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3237)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3194)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3163)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3136)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3113)
at javafx.fxml/javafx.fxml.FXMLLoader.load(FXMLLoader.java:3106)
at prueba.Main.start(Main.java:13)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:389)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
... 1 more
Caused by: java.lang.ClassNotFoundException: hellofx.Controller
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at javafx.fxml/javafx.fxml.FXMLLoader$ValueElement.processAttribute(FXMLLoader.java:928)
... 22 more
Exception running application prueba.Main

  • Attachment: java.jpg
    (Size: 271.66KB, Downloaded 3415 times)
  • Attachment: javafx.jpg
    (Size: 156.54KB, Downloaded 3501 times)
Re: Help in Setting JavaFX 11 SDK in Eclipse 2019-06 [message #1824170 is a reply to message #1809820] Thu, 09 April 2020 01:18 Go to previous messageGo to next message
Minwoo  Jeon is currently offline Minwoo JeonFriend
Messages: 1
Registered: April 2020
Junior Member
Have you solved this error?
I would appreciate a lot if you share the solution because I'm stuck with the same error.
Re: Help in Setting JavaFX 11 SDK in Eclipse 2019-06 [message #1824180 is a reply to message #1824170] Thu, 09 April 2020 06:55 Go to previous messageGo to next message
Gabriel Numa Parreño is currently offline Gabriel Numa ParreñoFriend
Messages: 4
Registered: July 2019
Junior Member
No Message Body
Re: Help in Setting JavaFX 11 SDK in Eclipse 2019-06 [message #1824181 is a reply to message #1824170] Thu, 09 April 2020 06:56 Go to previous messageGo to next message
Gabriel Numa Parreño is currently offline Gabriel Numa ParreñoFriend
Messages: 4
Registered: July 2019
Junior Member
Hi Minwoo:

I did solve it but in another way. Since trying what I found online didn't work.

I finally used javaFX with maven which didn't required any installation.

Sorry but that's all the help I can give you, it's been a while since I posted this and currently I'm using Java 9 SKD which comes with FX.

Best, Gabriel.-

[Updated on: Thu, 09 April 2020 07:01]

Report message to a moderator

Re: Help in Setting JavaFX 11 SDK in Eclipse 2019-06 [message #1824183 is a reply to message #1824170] Thu, 09 April 2020 07:03 Go to previous message
Gabriel Numa Parreño is currently offline Gabriel Numa ParreñoFriend
Messages: 4
Registered: July 2019
Junior Member
Hi: This GUI is rather unfriendly check my reply on main thread.
Previous Topic:Does SWT applications need special packages to be installed to be run?
Next Topic:I have problem about No Persistence provider for EntityManager named FastMatch
Goto Forum:
  


Current Time: Tue Apr 23 11:22:18 GMT 2024

Powered by FUDForum. Page generated in 0.07637 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top