B4J Question javafx.scene.control.CheckBoxTreeItem.setIndependent-Error

schimanski

Well-Known Member
Licensed User
Longtime User
Does anybody knows, where the problem is? The programm runs fine on my old windows-pc. On my new, only the .exe runs, but not in B4j????

B4X:
Program started.
main._showdevices (java line: 1183)
java.lang.NoSuchMethodError: javafx.scene.control.CheckBoxTreeItem.setIndependent(Ljava/lang/Boolean;)V
    at anywheresoftware.b4j.objects.TreeViewWrapper$CheckBoxTreeItemWrapper.Initialize(TreeViewWrapper.java:158)
    at eisdesktop.stamm.main._showdevices(main.java:1183)
    at eisdesktop.stamm.main._appstart(main.java:137)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)
    at eisdesktop.stamm.main.start(main.java:35)
    at com.sun.javafx.application.LauncherImpl$8.run(LauncherImpl.java:837)
    at com.sun.javafx.application.PlatformImpl$7.run(PlatformImpl.java:335)
    at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:301)
    at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:298)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl$6.run(PlatformImpl.java:298)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at com.sun.glass.ui.win.WinApplication.access$300(WinApplication.java:39)
    at com.sun.glass.ui.win.WinApplication$4$1.run(WinApplication.java:112)
    at java.lang.Thread.run(Thread.java:745)
 

schimanski

Well-Known Member
Licensed User
Longtime User
Here is the code, which raise the exception:

B4X:
Sub Process_Globals
  ..
  Private tvDevices As TreeView
  Dim tvZug(100) As CheckboxTreeItem 
  Private lZug As List
  ..
end sub

Sub Zugehoerigkeiten_laden
   Try
     If File.Exists(File.DirApp, "Zugehoerigkeiten.eis") Then
       lZug=File.ReadList(File.DirApp, "Zugehoerigkeiten.eis")
     Else
       lZug.Initialize
       lZug.Add("")
     End If
   Catch
     Fehler_senden("Main, Zugehoerigkeiten_laden, " & LastException.Message & CRLF)
   End Try
End Sub

Private Sub ShowDevices

    Try
        tvDevices.Root.Children.Clear
        Zugehoerigkeiten_laden
       
        tvZug(0).Initialize("tvZug", "A-Z")           'here is the exception!!!!!!!'
        tvDevices.Root.Children.Add(tvZug(0))
        .....
        .....
 
Upvote 0

JEG

Member
Licensed User
Longtime User
The same problem in push desktop
log:Caused by: java.lang.NoSuchMethodError: javafx.scene.control.CheckBoxTreeItem.setIndependent(Ljava/lang/Boolean;)V
 
Upvote 0
Top