#JavaFX Error (New to JavaFX)

3 messages · Page 1 of 1 (latest)

uneven meadowBOT
#

@coarse frigate

Yakuza Friend Uploaded Some Code

Heyo! Been doing some learning with JavaFX! I am making what is a FMV game basically, a video that's playing with bounding boxes over top of them. However I've gotten this error and am stumped, any tips or tricks?

Attachment: MaybeNeeded.txt
package application;

public class App {
    public static void main(String[] args) {
        Video.main(args);
    }
}
Uploaded these files to a Gist
coarse frigate
#

Sorry, found my issue but now got this

#

Exception in thread "main" 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: java.lang.UnsupportedOperationException: Unsupported protocol "d"
at javafx.media/com.sun.media.jfxmedia.locator.Locator.<init>(Locator.java:241)
at javafx.media/javafx.scene.media.Media.<init>(Media.java:393)
at application.Video.start(Video.java:26)
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