Dim job as Httjob causes error on runtime!
I don't understand what's going wrong!
Is it a java related error or what else?
I use Java 11.0.1 and B4j 10.0
The beginning of error massage......
Error occurred on line: 168 (Main)
java.lang.RuntimeException: java.lang.NoClassDefFoundError: javafx/scene/control/Dialog
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:140)
at b4j.example.httpjob.innerInitialize(httpjob.java:22)
at b4j.example.httpjob._initialize(httpjob.java:199)
at Geo.EasyMedia.main$ResumableSub_UpdateIp_Tick.resume(main.java:322)
at Geo.EasyMedia.main._updateip_tick(main.java:296)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
I don't understand what's going wrong!
B4X:
Sub UpdateIp_Tick()
Dim job As HttpJob
job.Initialize("", Me) 'Error occurred on line: 168 (Main) java.lang.RuntimeException: java.lang.NoClassDefFoundError: javafx/scene/control/Dialog
job.Download2("http://www.duckdns.org/update", Array As String("domains", domain, "token", token, "ip", ""))
wait for (job) JobDone(job As HttpJob)
If job.Success = True Then
Log("Update DuckDNS: " & job.GetString)
Else
Log("Error updating Duck DNS: " & job.ErrorMessage)
End If
job.Release
End Sub
Is it a java related error or what else?
I use Java 11.0.1 and B4j 10.0
The beginning of error massage......
Error occurred on line: 168 (Main)
java.lang.RuntimeException: java.lang.NoClassDefFoundError: javafx/scene/control/Dialog
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:140)
at b4j.example.httpjob.innerInitialize(httpjob.java:22)
at b4j.example.httpjob._initialize(httpjob.java:199)
at Geo.EasyMedia.main$ResumableSub_UpdateIp_Tick.resume(main.java:322)
at Geo.EasyMedia.main._updateip_tick(main.java:296)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)