AmitSureshChandra / mltFInal

3 stars 2 forks source link

Building and running project error : #1

Open MohamedArbani opened 2 years ago

MohamedArbani commented 2 years ago

Hi. I found your project in YouTube and i really appreciate your work. But when i want to build this project, it gives me this error :

"D:\Zulu\Zulu JDK 17.32.13\bin\java.exe" --add-exports javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED --module-path Path-To-JavaFX-SDK --add-modules=javafx.controls,javafx.fxml,javafx.web --add-opens javafx.graphics/javafx.scene.text=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.text=ALL-UNNAMED --add-opens javafx.graphics/com.sun.javafx.text=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.scene.text=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.geom=ALL-UNNAMED -Dprism.allowhidpi=false "-javaagent:D:\IntelliJ IDEA 2021.3\lib\idea_rt.jar=49472:D:\IntelliJ IDEA 2021.3\bin" -Dfile.encoding=UTF-8 -classpath D:\source\mltFInal-master\out\production\mltFInal-master;D:\source\mltFInal-master\lib\mail.jar;D:\source\mltFInal-master\lib\fontawesomefx-materialdesignfont-1.7.22-4.jar;D:\source\mltFInal-master\lib\fontawesomefx-emojione-2.2.7-2.jar;D:\source\mltFInal-master\lib\fontawesomefx-fontawesome-4.7.0-5.jar;D:\source\mltFInal-master\lib\mysql-connector-java-8.0.15.jar;D:\source\mltFInal-master\lib\fontawesomefx-glyphsbrowser-1.3.0.jar;D:\source\mltFInal-master\lib\fontawesomefx-commons-8.15.jar;D:\source\mltFInal-master\lib\jfoenix-8.0.8.jar;D:\source\mltFInal-master\lib\fontawesomefx-octicons-4.3.0-5.jar;D:\source\mltFInal-master\lib\fontawesomefx-icons525-3.0.0-4.jar;D:\source\mltFInal-master\lib\fontawesomefx-controls-8.15.jar;D:\source\mltFInal-master\lib\fontawesomefx-materialicons-2.2.0-5.jar;D:\source\mltFInal-master\lib\controlsfx-8.40.11.jar;D:\source\mltFInal-master\lib\AnimateFX-1.2.1.jar;D:\source\mltFInal-master\lib\fontawesomefx-weathericons-2.0.10-5.jar;D:\source\mltFInal-master\lib1\commons-logging-1.1.2.jar;D:\source\mltFInal-master\lib1\commons-digester-2.1.jar;D:\source\mltFInal-master\lib1\itext-2.1.7.js6.jar;D:\source\mltFInal-master\lib1\jasperreports-metadata-6.6.0.jar;D:\source\mltFInal-master\lib1\commons-collections4-4.2.jar;D:\source\mltFInal-master\lib1\jasperreports-6.9.0.jar;D:\source\mltFInal-master\lib1\commons-beanutils-1.9.3.jar;D:\javafx-sdk-17.0.2\lib\javafx-swt.jar;D:\javafx-sdk-17.0.2\lib\javafx.web.jar;D:\javafx-sdk-17.0.2\lib\javafx.base.jar;D:\javafx-sdk-17.0.2\lib\javafx.fxml.jar;D:\javafx-sdk-17.0.2\lib\javafx.media.jar;D:\javafx-sdk-17.0.2\lib\javafx.swing.jar;D:\javafx-sdk-17.0.2\lib\javafx.controls.jar;D:\javafx-sdk-17.0.2\lib\javafx.graphics.jar mlt.MainMethod Table creation Error Couldn't Connect to Local Server Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 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:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:465) at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:364) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at java.base/sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:1071) Caused by: java.lang.RuntimeException: Exception in Application start method at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:901) at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:196) at java.base/java.lang.Thread.run(Thread.java:833) Caused by: javafx.fxml.LoadException: /D:/source/mltFInal-master/out/production/mltFInal-master/mlt/ui/login/Login.fxml:24

at javafx.fxml/javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2707)
at javafx.fxml/javafx.fxml.FXMLLoader$InstanceDeclarationElement.constructValue(FXMLLoader.java:1022)
at javafx.fxml/javafx.fxml.FXMLLoader$ValueElement.processStartElement(FXMLLoader.java:757)
at javafx.fxml/javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:2808)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2634)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2548)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3331)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3287)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3255)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3227)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3203)
at javafx.fxml/javafx.fxml.FXMLLoader.load(FXMLLoader.java:3196)
at mlt.MainMethod.start(MainMethod.java:22)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:847)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:484)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:457)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:456)
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:184)
... 1 more

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 javafx.fxml/javafx.fxml.FXMLLoader$InstanceDeclarationElement.constructValue(FXMLLoader.java:1020) ... 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.JFXButton$StyleableProperties.(JFXButton.java:208) at com.jfoenix.controls.JFXButton.(JFXButton.java:156) ... 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 Exception running application mlt.MainMethod

Please if you can help me to solve my problem and thanks for advance🙏.

Remarques : I am using JDK 17.0.2 and the latest version of javafx, jfoenix and fontawesomefx.

AmitSureshChandra commented 2 years ago

I have developed this project in jdk-8 so not sure whether it is compatible with jdk-17, let me check it