JCEF exception Exception in thread "main" java.lang.Unsatisf

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

JCEF exception Exception in thread "main" java.lang.Unsatisf

Postby jvallar » Tue Nov 29, 2016 9:12 pm

How to fixed this JCEF exception Exception in thread "main" java.lang.UnsatisfiedLinkError
Code: Select all
Exception in thread "main" java.lang.UnsatisfiedLinkError: /Users/jamesonvallar/Projects/java-cef/src/binary_distrib/macosx64/bin/jcef_app.app/Contents/Java/libjcef.dylib: dlopen(/Users/jamesonvallar/Projects/java-cef/src/binary_distrib/macosx64/bin/jcef_app.app/Contents/Java/libjcef.dylib, 1): Library not loaded: @rpath/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework
  Referenced from: /Users/jamesonvallar/Projects/java-cef/src/binary_distrib/macosx64/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:1941)
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857)
   at java.lang.Runtime.loadLibrary0(Runtime.java:870)
   at java.lang.System.loadLibrary(System.java:1122)
   at org.cef.CefApp.<init>(CefApp.java:157)
   at org.cef.CefApp.getInstance(CefApp.java:246)
   at org.cef.CefApp.getInstance(CefApp.java:233)
   at com.visp.gui.maintab.ticketschedule.SimpleFrameExample.<init>(SimpleFrameExample.java:71)
   at com.visp.gui.maintab.ticketschedule.SimpleFrameExample.main(SimpleFrameExample.java:146)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
jvallar
Newbie
 
Posts: 5
Joined: Tue Nov 29, 2016 9:02 pm

Re: JCEF exception Exception in thread "main" java.lang.Unsa

Postby magreenblatt » Tue Nov 29, 2016 9:18 pm

It looks like you're trying to launch the JCEF binary distribution in some other application. What specifically are you trying to do?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: JCEF exception Exception in thread "main" java.lang.Unsa

Postby jvallar » Wed Nov 30, 2016 12:13 am

I was inspired by this http://stackoverflow.com/questions/2119 ... -with-java.

I am new to JCEF, I have an existing Java Swing Application. I am using JavaFX web view but the performance is not good.
I found out about JCEF. I need to have a browser inside a JPanel or JFRame, Can I do that using JCEF?

I am using MacOS and IntelliJ, I was able to Product > Build in Xcode but the resulting Folder is Debug folder. I rename it to Release and was able to create binary distribution.

What to do next? Thanks a lot
jvallar
Newbie
 
Posts: 5
Joined: Tue Nov 29, 2016 9:02 pm

Re: JCEF exception Exception in thread "main" java.lang.Unsa

Postby magreenblatt » Wed Nov 30, 2016 12:42 pm

Take a look at the simple and detailed example applications included with JCEF. On macOS the complete application must live inside the app bundle.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: JCEF exception Exception in thread "main" java.lang.Unsa

Postby jvallar » Wed Nov 30, 2016 7:19 pm

Is there someone who created a CEF wrapper in Java, like JXBrowser way of integrating to existing application? We are not using native bundle. We publish our Java App in JNLP Webstart.
jvallar
Newbie
 
Posts: 5
Joined: Tue Nov 29, 2016 9:02 pm

Re: JCEF exception Exception in thread "main" java.lang.Unsa

Postby magreenblatt » Wed Nov 30, 2016 7:23 pm

jvallar wrote:Is there someone who created a CEF wrapper in Java, like JXBrowser way of integrating to existing application? We are not using native bundle. We publish our Java App in JNLP Webstart.

What OS does that run on?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: JCEF exception Exception in thread "main" java.lang.Unsa

Postby jvallar » Wed Nov 30, 2016 7:47 pm

Our app should run on any OS because it is run through JNLP Webstart.

JXBrowser can run on different OS.
https://www.teamdev.com/jxbrowser#features
https://jxbrowser.support.teamdev.com/s ... ellij-idea

This is same use case viewtopic.php?f=17&t=14079&p=33145#p33145
jvallar
Newbie
 
Posts: 5
Joined: Tue Nov 29, 2016 9:02 pm

Re: JCEF exception Exception in thread "main" java.lang.Unsa

Postby magreenblatt » Wed Nov 30, 2016 8:11 pm

Unfortunately Chromium has dependencies on macOS that require a properly structured app bundle. If you wish to run on macOS you will need to work within those constraints.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 98 guests