More precisely, there are two things to fix:
- making the Mach port names independent of the bundle names,
- specifying the framework path at startup (this is somehow related to sandbox mode in OSX).
I think those fixes should be integrated in CEF/JCEF, to make it really a portable library on all platforms.
Now, I am trying to run the code in OSGi as opposed to using the regular path-based classloader. For loading the native libraries correctly on OSGi I changed the getJcefLibPath method to use the current class loader before parsing the java.library.path property. This works well: the library path is always determined correctly on all platforms.
However, I am facing another problem, only in OSX (Windows and Linux are fine).
When the Java code calls N_Initialize (a native method), the execution hangs indefinitely.
I am using the tests.detailed.MainFrame example, but called from an Eclipse command handler.
Any idea?
Thank you.