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

Creatting KCEFClient failing #10

Closed
dimaklekchyan opened this issue Mar 26, 2024 · 2 comments
Closed

Creatting KCEFClient failing #10

dimaklekchyan opened this issue Mar 26, 2024 · 2 comments

Comments

@dimaklekchyan
Copy link

dimaklekchyan commented Mar 26, 2024

OS: Mac M1 13.6.4 (22G513)
JDK: correto-17.0.10

When i try to create KCEFClient after successful initialization of KCEF an error occurs

Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: 'void org.cef.browser.CefMessageRouter_N.N_Initialize(org.cef.browser.CefMessageRouter$CefMessageRouterConfig)'
	at org.cef.browser.CefMessageRouter_N.N_Initialize(Native Method)
	at org.cef.browser.CefMessageRouter_N.stateHasChanged(CefMessageRouter_N.java:30)
	at org.cef.CefApp.onInitialization(CefApp.java:213)
	at org.cef.browser.CefMessageRouter_N.<init>(CefMessageRouter_N.java:24)
	at org.cef.browser.CefMessageRouter.create(CefMessageRouter.java:212)
	at org.cef.browser.CefMessageRouter.create(CefMessageRouter.java:197)

It happens due to creating of CefMessageRouter in KCEFClient init block

val router = CefMessageRouter.create(
            CefMessageRouter.CefMessageRouterConfig("cefQueryEvaluate", "cefQueryEvaluateCancel")
)

but CefClient creating without CefMessageRouter finishes successful

How to solve the problem?

@nsullivan251
Copy link

I was just experiencing this same issue.
What worked for me was setting the JBR package to the previous release in the KCEF configuration builder.

release("jbr-release-17.0.10b1087.23")

@dimaklekchyan
Copy link
Author

@nsullivan251 Thank you! It works
@DatL4g Sorry i missed the topic

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