Problems building JCEF

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

Problems building JCEF

Postby clapas » Mon Aug 03, 2015 5:21 am

Hi everyone,

following the steps for building JCEF from sources I encountered a problem. The build specified in the src\cef\third_party\README.jcef file is not listed in cefbuilds.com.
It says it should be 3.2357.1286.gf615d24 but it is not there... In the meantime I was trying with previous build CEF 3.2357.1276.gd4b589c, but I get compilation errors. I guess those are due to mismatching build versions. Anyway, they all look like this, in case it may be relevant:

Code: Select all
native/CefCommandLine_N.cpp: In function ‘_jobject* Java_org_cef_callback_CefCommandLine_1N_N_1getArguments(JNIEnv*, jobject)’:
/usr/lib/jvm/java-7-openjdk-amd64/include/jni_md.h:40:21: error: ‘UNUSED_succ’ was not declared in this scope
   #define UNUSED(x) UNUSED_ ## x __attribute__((__unused__))


Cheers
clapas
Techie
 
Posts: 18
Joined: Mon Aug 03, 2015 5:10 am

Re: Problems building JCEF

Postby magreenblatt » Mon Aug 03, 2015 3:04 pm

CEF is not tested with OpenJDK. Use the Oracle JDK for best results.
magreenblatt
Site Admin
 
Posts: 9831
Joined: Fri May 29, 2009 6:57 pm

Re: Problems building JCEF

Postby clapas » Tue Aug 04, 2015 4:16 am

Thank you for your reply.

I will try with Oracle JDK.

How about the build not being listed in cefbuilds.com? Is it ok to compile against a mismatching build?

Cheers
clapas
Techie
 
Posts: 18
Joined: Mon Aug 03, 2015 5:10 am

Re: Problems building JCEF

Postby magreenblatt » Tue Aug 04, 2015 11:55 am

clapas wrote:How about the build not being listed in cefbuilds.com? Is it ok to compile against a mismatching build?

You will probably have to build CEF yourself for the time being. See https://bitbucket.org/chromiumembedded/ ... ssues/137/.
magreenblatt
Site Admin
 
Posts: 9831
Joined: Fri May 29, 2009 6:57 pm

Re: Problems building JCEF

Postby vvijayan » Fri Jan 04, 2019 4:50 am

Hi,
I am also facing the same issue while trying to build JCEF with OpenJDK.
Is the bug still present ?

Regards,
Vinitha
vvijayan
Newbie
 
Posts: 1
Joined: Fri Jan 04, 2019 3:17 am

Re: Problems building JCEF

Postby FirstAirBender » Thu Jun 20, 2019 2:19 am

There is a build on github which is built with openjdk

https://github.com/smac89/java-cef-build
User avatar
FirstAirBender
Newbie
 
Posts: 3
Joined: Wed Jun 19, 2019 4:14 pm


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 1 guest