when build jcef for OSX, I following the instructions https://bitbucket.org/chromiumembedded/java-cef/wiki/BranchesAndBuilding. However the final step, packaging the the binaries, fails because building the project using Product>Build, doesn't produce the jcef_build/native/Release/jcef_app.app
If I copy jcef_build/native/Debug/jcef_app.app, into the Release folder, I get the binaries.
I add the jars in an Eclipse project, and set the JRE System Library > Native Library Location to point to {binaries_root}/bin/jcef_app.app/Contents/Java/
And I get the error:
- Code: Select all
Exception in thread "main" java.lang.UnsatisfiedLinkError: {binaries_root}/bin/jcef_app.app/Contents/Java/libjcef.dylib: dlopen({binaries_root}/bin/jcef_app.app/Contents/Java/libjcef.dylib, 1): Library not loaded: @executable_path/../Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework
Referenced from: {binaries_root}/bin/jcef_app.app/Contents/Java/libjcef.dylib
Reason: image not found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1937)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1855)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at org.cef.CefApp.<init>:CefApp.java:156)
at org.cef.CefApp.getInstance(CefApp.java:247)
at org.cef.CefApp.getInstance(CefApp.java:224)
at Main.main(Main.java:9)
Any ideas?