JCEF in a Swing app. Failing to point to native dependencies

Having problems with building or using the JCEF Java binding? Ask your questions here.

JCEF in a Swing app. Failing to point to native dependencies

Postby garcinez » Mon Jan 21, 2019 3:59 am

Hello,

I can't get JCEF to run on Macos (same issue on Linux/Ubuntu): I have a java.lang.UnsatisfiedLinkError: org.cef.CefApp.N_PreInitialize()Z
This method is a native one; I probably don't declare my native dependencies appropriately. Here is the chunk of my build.gradle.kts:
Code: Select all
implementation(fileTree(mapOf("dir" to "javacef")))

javacef being the dir in which I put the content of binary_distrib, after having build JCEF according to https://bitbucket.org/chromiumembedded/java-cef/wiki/BranchesAndBuilding. The sample app works fine.

Also, I'm wondering whether JCEF can run in my context: this is a plugin of an opensource project (JOSM), relying on a Java/Swing desktop app. The plugin's entry point is a JPanel. I think I don't have a handle on the global JFrame.

Help very welcome :-)
Thanks!
garcinez
Newbie
 
Posts: 1
Joined: Fri Jan 18, 2019 11:38 am

Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 3 guests