Page 1 of 1

no cef in java.library.path

PostPosted: Wed May 16, 2018 10:39 am
by rds98
I am trying to run https://github.com/viglucci/app-jcef-example Project on Ubuntu but it is giving me the following error. Can anyone help me to Fix this?
I am running Ubuntu 16.04 and i have also added the "jcef_build/native/Release" To my path Variables.

Code: Select all
Exception in thread "main" java.lang.UnsatisfiedLinkError: no cef in java.library.path
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
   at java.lang.Runtime.loadLibrary0(Runtime.java:870)
   at java.lang.System.loadLibrary(System.java:1122)
   at org.cef.CefApp.<init>(CefApp.java:154)
   at org.cef.CefApp.getInstance(CefApp.java:247)
   at org.cef.CefApp.getInstance(CefApp.java:234)
   at example.simple.SimpleFrameExample.<init>(SimpleFrameExample.java:74)
   at example.simple.SimpleFrameExample.main(SimpleFrameExample.java:149)

Re: no cef in java.library.path

PostPosted: Wed May 16, 2018 11:08 am
by magreenblatt
How are you running it? See the tools/run.sh script.

Re: no cef in java.library.path

PostPosted: Wed Dec 05, 2018 8:45 am
by chandrub2004
I am also having the same issue , when i try to run the jar in ubuntu 16.0.4, I am getting the same exception. Can anyone help on this .
Thanks in advance
Chandru

Re: no cef in java.library.path

PostPosted: Thu Feb 07, 2019 2:20 am
by chandrub2004
found the solution for the issue by doing some research , we need to add the natives folder(which i got from one of the jcef-example) in java library path.
In Eclipse Right click project --> go to Build path --> Click on configure build path , we will get a Java Build path window. Go to Libraries tab, Expand JRE System Library(JavaSE 1.8) click on Native Library Location and click on Edit in right side. This will open a window there choose the Natives folder click ok.

Natives folder is the binaries which we get from CEF , i got natives folder in one of the jcef-example app.