I believe I've downloaded "the three pieces and put them in the right place" to create a Java 21 environment as per this post by @Erel in order to confirm updating from Java 19 to Java 21 doesn't eliminate a problem I'm encountering with an app, but something's not quite right.
Firstly when I compile the app, it says Java Version: 8 as per below, whereas under Java 19 indeed it says Java Version: 19:
Does this indicate the contents and/or structure of the "three pieces" is wrong?
After compilation the app runs and my log suggests it's running in a Java 19 environment, but when I click on a button to load a video into MediaView, the following fatal error is thrown:
Any guidance would be appreciated or ideally if someone has a complete zip of the "three pieces" for a functional Java 21 environment, I'd appreciate a link to it.
Firstly when I compile the app, it says Java Version: 8 as per below, whereas under Java 19 indeed it says Java Version: 19:
Does this indicate the contents and/or structure of the "three pieces" is wrong?
After compilation the app runs and my log suggests it's running in a Java 19 environment, but when I click on a button to load a video into MediaView, the following fatal error is thrown:
BDSSynergyPlayerBoard V21 - Ringwood started at 16/5/2025 23:15:18
Java version: 21.0.7
Host Address: 192.168.0.22
main._btnloadvideo_click (java line: 2337)
java.lang.ClassCastException: class java.lang.UnsatisfiedLinkError cannot be cast to class java.lang.Exception (java.lang.UnsatisfiedLinkError and java.lang.Exception are in module java.base of loader 'bootstrap')
at anywheresoftware.b4a.BA.setLastException(BA.java:399)
at b4j.example.main._btnloadvideo_click(main.java:2337)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:111)
at anywheresoftware.b4a.BA$1.run(BA.java:236)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:456)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:455)
at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
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)
at java.base/java.lang.Thread.run(Thread.java:1583)
Any guidance would be appreciated or ideally if someone has a complete zip of the "three pieces" for a functional Java 21 environment, I'd appreciate a link to it.