no cef in java.library.path

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

no cef in java.library.path

Postby rds98 » Wed May 16, 2018 10:39 am

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)
rds98
Newbie
 
Posts: 1
Joined: Mon May 14, 2018 1:09 pm

Re: no cef in java.library.path

Postby magreenblatt » Wed May 16, 2018 11:08 am

How are you running it? See the tools/run.sh script.
magreenblatt
Site Admin
 
Posts: 9974
Joined: Fri May 29, 2009 6:57 pm

Re: no cef in java.library.path

Postby chandrub2004 » Wed Dec 05, 2018 8:45 am

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
chandrub2004
Newbie
 
Posts: 2
Joined: Wed Dec 05, 2018 8:40 am

Re: no cef in java.library.path

Postby chandrub2004 » Thu Feb 07, 2019 2:20 am

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.
chandrub2004
Newbie
 
Posts: 2
Joined: Wed Dec 05, 2018 8:40 am


Return to JCEF Forum

Who is online

Users browsing this forum: chandan and 3 guests