Does anyone know of a way to run a legacy program written in JavaFX 1.3 script language in a current Java 8 runtime? My guess is there are "simply" some class name conflicts now that JavaFX is included in the JRE.
My program gives up with one of the following exceptions (there will probably be more if I dig deeper):
(When instantiating a Node extended from CustomNode):
java.lang.VerifyError: Cannot inherit from final class at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:760) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) at java.net.URLClassLoader.access$100(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:368) at java.net.URLClassLoader$1.run(URLClassLoader.java:362) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:361) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at ......Main.initializeNodes(Main.fx:313)
(When instantiating a Group):
java.lang.NoSuchMethodError: javafx.scene.Group.<init>(Z)V at ......Main$Main$Script.applyDefaults$(Main.fx:131) at com.sun.javafx.runtime.FXBase.applyDefaults$(FXBase.java:307) at ......Main.<clinit>(Main.fx:7)
(When creating certain nodes):
java.lang.NoSuchMethodError: javafx.scene.CustomNode.VCNT$()I at ......SomeNode$SomeNode$Script.VCNT$(SomeNode.fx) at ......SomeNode$SomeNode$Script.count$(SomeNode.fx) at com.sun.javafx.runtime.FXBase.<init>(FXBase.java:274) at ......SomeNode$SomeNode$Script.<init>(SomeNode.fx) at ......SomeNode.<clinit>(SomeNode.fx)
Migration to JavaFx8 or another technology is unfortunately not an option.
The only workaround I know of so far is using JRE < 8.