Skip to content
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

Running the application of Eclipse #2

Open
Chamieh opened this issue May 4, 2023 · 0 comments
Open

Running the application of Eclipse #2

Chamieh opened this issue May 4, 2023 · 0 comments

Comments

@Chamieh
Copy link

Chamieh commented May 4, 2023

Hello, I downloaded the code of this application and I'm trying to run it on eclipse, i downloaded as well javafx and included the libraries that they are missing and in the vm arguments i wrote the below:
--module-path /Users/CHAMIEH/Downloads/openjfx-20.0.1_windows-x64_bin-sdk\javafx-sdk-20.0.1/lib --add-modules javafx.controls,javafx.fxml

and still getting these errors:

javafx.fxml.LoadException:
/C:/Users/CHAMIEH/eclipse-workspace/ooss/bin/application/FXMLfile.fxml:31

at [email protected]/javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2722)
at [email protected]/javafx.fxml.FXMLLoader$InstanceDeclarationElement.constructValue(FXMLLoader.java:1024)
at [email protected]/javafx.fxml.FXMLLoader$ValueElement.processStartElement(FXMLLoader.java:759)
at [email protected]/javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:2853)
at [email protected]/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2649)
at [email protected]/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2563)
at [email protected]/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3376)
at [email protected]/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3332)
at [email protected]/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3300)
at [email protected]/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3272)
at [email protected]/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3248)
at [email protected]/javafx.fxml.FXMLLoader.load(FXMLLoader.java:3241)
at application.Main.start(Main.java:15)
at [email protected]/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:839)
at [email protected]/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:483)
at [email protected]/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:456)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at [email protected]/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:455)
at [email protected]/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at [email protected]/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at [email protected]/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:185)
at java.base/java.lang.Thread.run(Thread.java:833)

Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at [email protected]/javafx.fxml.FXMLLoader$InstanceDeclarationElement.constructValue(FXMLLoader.java:1022)
... 20 more
Caused by: java.lang.NoClassDefFoundError: com/sun/javafx/css/StyleConverterImpl
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:862)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:760)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:681)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
at com.jfoenix.controls.JFXTextArea$StyleableProperties.(JFXTextArea.java:240)
at com.jfoenix.controls.JFXTextArea.(JFXTextArea.java:164)
... 26 more
Caused by: java.lang.ClassNotFoundException: com.sun.javafx.css.StyleConverterImpl
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
... 37 more

any idea what i did wrong or what i missed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant