goxr3plus / XR3Player

🎧 🎼 The MOST ADVANCED JavaFX Media Player
https://xr3player.netlify.com/
GNU Lesser General Public License v3.0
724 stars 176 forks source link

Cannot run #84

Open Ygarr opened 2 years ago

Ygarr commented 2 years ago

After successful build:

 java --module-path C:\openjfx-18.0.2_windows-x64_bin-sdk\javafx-sdk-18.0.2\lib --add-modules javafx.controls,javafx.fxml -jar .\XR3Player.jar
Entered JavaFX Application Start Method
Path :-> C:\Users\u\XR3Player\target\
Exception in Application start method
java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:119)
        at java.base/java.lang.reflect.Method.invoke(Method.java:577)
        at javafx.graphics@18.0.2/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:465)
        at javafx.graphics@18.0.2/com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:364)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:577)
        at java.base/sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:1081)
Caused by: java.lang.RuntimeException: Exception in Application start method
        at javafx.graphics@18.0.2/com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:901)
        at javafx.graphics@18.0.2/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:196)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.IllegalAccessError: superclass access check failed: class javafx.scene.media.NGMediaView (in unnamed module @0x3a8b3cea) cannot access class com.sun.javafx.sg.prism.NGNode (in module javafx.graphics) because module javafx.graphics does not export com.sun.javafx.sg.prism to unnamed module @0x3a8b3cea
        at java.base/java.lang.ClassLoader.defineClass1(Native Method)
        at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1013)
        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:521)
        at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3405)
        at java.base/java.lang.Class.getConstructors(Class.java:2092)
        at javafx.base@18.0.2/com.sun.javafx.reflect.ConstructorUtil.getConstructors(ConstructorUtil.java:43)
        at javafx.fxml@18.0.2/javafx.fxml.JavaFXBuilderFactory.scanForConstructorAnnotations(JavaFXBuilderFactory.java:173)
        at javafx.fxml@18.0.2/javafx.fxml.JavaFXBuilderFactory.getBuilder(JavaFXBuilderFactory.java:160)
        at javafx.fxml@18.0.2/javafx.fxml.FXMLLoader$InstanceDeclarationElement.constructValue(FXMLLoader.java:1014)
        at javafx.fxml@18.0.2/javafx.fxml.FXMLLoader$ValueElement.processStartElement(FXMLLoader.java:757)
        at javafx.fxml@18.0.2/javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:2808)
        at javafx.fxml@18.0.2/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2634)
        at javafx.fxml@18.0.2/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2548)
        at javafx.fxml@18.0.2/javafx.fxml.FXMLLoader.load(FXMLLoader.java:2516)
        at com.goxr3plus.xr3player.controllers.general.WelcomeScreen.<init>(WelcomeScreen.java:69)
        at com.goxr3plus.xr3player.application.MainLoader.startPart1(MainLoader.java:174)
        at com.goxr3plus.xr3player.application.MainLoader.startPart0(MainLoader.java:99)
        at com.goxr3plus.xr3player.application.Main.start(Main.java:330)
        at javafx.graphics@18.0.2/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:847)
        at javafx.graphics@18.0.2/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:484)
        at javafx.graphics@18.0.2/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:457)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
        at javafx.graphics@18.0.2/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:456)
        at javafx.graphics@18.0.2/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
        at javafx.graphics@18.0.2/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at javafx.graphics@18.0.2/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:184)
        ... 1 more
Exception running application com.goxr3plus.xr3player.application.Main
goxr3plus commented 2 years ago

Did you followed the instructions on Read Me File:)? I have a gif and some vm parameters you add before you run its very easy to add them check the read me and let me know ☺.

Ygarr commented 2 years ago

...Trying to build without IDE with command line , Implying I am a user.

Ygarr commented 2 years ago

java --module-path C:\openjfx-18.0.2_windows-x64_bin-sdk\javafx-sdk-18.0.2\lib --add-modules javafx.controls,javafx.fxml --add-exports javafx.controls/com.sun.javafx.scene.control.behavior=com.jfoenix,javafx.controls/com.sun.javafx.scene.control=com.jfoenix,javafx.base/com.sun.javafx.binding=com.jfoenix,javafx.graphics/com.sun.javafx.stage=com.jfoenix,javafx.base/com.sun.javafx.event=com.jfoenix,javafx.graphics/com.sun.javafx.scene=org.controlsfx.controls,javafx.graphics/com.sun.javafx.scene.traversal=org.controlsfx.controls -jar .\XR3Player.jar

within "XR3Player_lib" folder gives WARNING: Unknown module:

goxr3plus commented 2 years ago

Well you are trying to run directly the code? or you are using the installer?

The vm parameters are not needed when using the installer because i have passed them already. And Java 12 is bundled with the installer.

If you are running the code you will need an IDE to add the Vm parameters it's 1 minute task :).

They are needed that's how Java Fx works.

Last release was 3 years earlier because now i do web and mobile apps. I recently made some updates though on XR3Player and will release a new update sooner or later ☺.

On Sun, Aug 28, 2022, 17:01 Ygarr @.***> wrote:

java --module-path C:\openjfx-18.0.2_windows-x64_bin-sdk\javafx-sdk-18.0.2\lib --add-modules javafx.controls,javafx.fxml --add-exports javafx.controls/com.sun.javafx.scene.control.behavior=com.jfoenix,javafx.controls/com.sun.javafx.scene.control=com.jfoenix,javafx.base/com.sun.javafx.binding=com.jfoenix,javafx.graphics/com.sun.javafx.stage=com.jfoenix,javafx.base/com.sun.javafx.event=com.jfoenix,javafx.graphics/com.sun.javafx.scene=org.controlsfx.controls,javafx.graphics/com.sun.javafx.scene.traversal=org.controlsfx.controls -jar .\XR3Player.jar

within "XR3Player_lib" folder gives WARNING: Unknown module:

— Reply to this email directly, view it on GitHub https://github.com/goxr3plus/XR3Player/issues/84#issuecomment-1229423127, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE3OFQCKNAFGIDWEYFKZYQLV3M2IDANCNFSM57ZS36VA . You are receiving this because you commented.Message ID: @.***>