openjfx-docs
openjfx-docs copied to clipboard
java.lang.UnsatisfiedLinkError: 'void com.sun.webkit.dom.HTMLButtonElementImpl.clickImpl(long)'
Hi,
I program under Linux within netbeans 12.0 using maven. I want to click a button in a webpage. However, when trying to click it, I obtain the UnsatisfiedLinkError 'void com.sun.webkit.dom.HTMLButtonElementImpl.clickImpl(long)'. Since only HTMLButtonElementImpl offers the "click" possibility, I cast the received button to this class. This error occurs within netbeans as well as on the console with "java -jar program.jar".
I tried to use the libraries of openjfx in versions 11.0.2, 14.0.2, 14.0.2.1, 15.0.1, 16 and 17-ea+9 with the same result each time.
I build a jar with all dependencies and the libjavafxweb.so is within the resulting jar. This library seems to incorporate the right routine, because nm libjfxwebkit.so | grep HTMLButtonElementImpl | grep click returns 00000000005dd810 t Java_com_sun_webkit_dom_HTMLButtonElementImpl_clickImpl
Thanks, Gerald Kroisandt
I have the same issue with openjfx 11.0.2 on raspbian.
I posted how I worked around it to https://stackoverflow.com/questions/19420753/how-to-call-a-javascript-function-from-a-javafx-webview-on-button-click/67878466#67878466