Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.UnsatisfiedLinkError: 'void com.sun.webkit.dom.HTMLButtonElementImpl.clickImpl(long)' #198

Open
GeraldKroisandt opened this issue May 9, 2021 · 1 comment

Comments

@GeraldKroisandt
Copy link

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

@montgomeryb
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants