Pedro Caldeira Active Member Licensed User Longtime User Nov 25, 2016 #1 Hello All, I keep getting this error when I compile a non UI App. Any Ideas ? Waiting for debugger to connect... Program started. Error occurred on line: 46 (Main) java.lang.RuntimeException: java.lang.NoClassDefFoundError: javafx/scene/control/Dialog at anywheresoftware.b4a.BA.raiseEvent2(BA.java:114) at b4j.example.httpjob.innerInitialize(httpjob.java:22) at b4j.example.httpjob._initialize(httpjob.java:199) at b4j.example.main._mainsub(main.java:97) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:612) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:226) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:159) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93) at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:90) at anywheresoftware.b4a.BA.raiseEvent(BA.java:84) at b4j.example.main.main(main.java:29) Caused by: java.lang.NoClassDefFoundError: javafx/scene/control/Dialog at b4j.example.httpjob._class_globals(httpjob.java:57) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93) ... 18 more Caused by: java.lang.ClassNotFoundException: javafx.scene.control.Dialog at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 24 more
Hello All, I keep getting this error when I compile a non UI App. Any Ideas ? Waiting for debugger to connect... Program started. Error occurred on line: 46 (Main) java.lang.RuntimeException: java.lang.NoClassDefFoundError: javafx/scene/control/Dialog at anywheresoftware.b4a.BA.raiseEvent2(BA.java:114) at b4j.example.httpjob.innerInitialize(httpjob.java:22) at b4j.example.httpjob._initialize(httpjob.java:199) at b4j.example.main._mainsub(main.java:97) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:612) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:226) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:159) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93) at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:90) at anywheresoftware.b4a.BA.raiseEvent(BA.java:84) at b4j.example.main.main(main.java:29) Caused by: java.lang.NoClassDefFoundError: javafx/scene/control/Dialog at b4j.example.httpjob._class_globals(httpjob.java:57) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93) ... 18 more Caused by: java.lang.ClassNotFoundException: javafx.scene.control.Dialog at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 24 more
Erel B4X founder Staff member Licensed User Longtime User Nov 27, 2016 #2 You need Java 8u40+. Upvote 0