Embedding JCEF In Application in Eclipse

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

Embedding JCEF In Application in Eclipse

Postby asevans48 » Tue Apr 12, 2016 5:45 pm

I am having some trouble getting the JCEF bindings and CEF to run in eclipse under Ubuntu 16.04. When I use them in applications outside of eclipse, they work fine. However, inside eclipse I experience a problem where the AWT thread containing the master, base; whichever initializes and then fails with an unknown error. I looked in content runner but could not find the reason. If anyone else is having this problem, could they help?

My Setup

IDE: Eclipse Mars
JCEF : Downloaded from bitbucket 4/11/2016
CEF Branch : 2623
JDK : 1.8.0.72 (java-8-oracle)

My Project Structure

In an imported library to my project containing MainFrame.java I have the jogl,jogl-all-natives-linux-amd64,jcef,gluegen-rt; gluegen-rt-natives-linux-amd64 jars. The dll was added to the jcef jar. I have tried importing it into the project and adding to java as well.

All symlinks were made.


My Error

initialize on Thread[AWT-EventQueue-0,6,main] with library path /home/xxxxxxxx/xxxxxxxx/jcef/src/binary_distrib/linux64/bin/lib/linux64
[0412/161355:FATAL:content_main_runner.cc(662)] Check failed: base::allocator::IsAllocatorInitialized().
#0 0x7fe8f387262e base::debug::StackTrace::StackTrace()
#1 0x7fe8f388788b logging::LogMessage::~LogMessage()
#2 0x7fe8f6680860 content::ContentMainRunnerImpl::Initialize()
#3 0x7fe8f377f962 CefContext::Initialize()
#4 0x7fe8f377f75b CefInitialize()
#5 0x7fe8f37329b8 cef_initialize
#6 0x7fe8ec1b9914 CefInitialize()
#7 0x7fe8ec17500f Java_org_cef_CefApp_N_1Initialize
#8 0x7fe93d015994 <unknown>
asevans48
Newbie
 
Posts: 6
Joined: Tue Apr 12, 2016 5:21 pm

Re: Embedding JCEF In Application in Eclipse

Postby magreenblatt » Wed Apr 13, 2016 2:29 am

magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Embedding JCEF In Application in Eclipse

Postby asevans48 » Wed Apr 13, 2016 3:20 pm

That worked but now I am getting a different error. Any idea what is wrong?

Code: Select all
[0413/135633:ERROR:icu_util.cc(157)] Invalid file descriptor to ICU data received.
[0413/135633:FATAL:content_main_runner.cc(700)] Check failed: base::i18n::InitializeICU().
#0 0x7ff8fa94a62e base::debug::StackTrace::StackTrace()
#1 0x7ff8fa95f88b logging::LogMessage::~LogMessage()
#2 0x7ff8fd7588d4 content::ContentMainRunnerImpl::Initialize()
#3 0x7ff8fa857962 CefContext::Initialize()
#4 0x7ff8fa85775b CefInitialize()
#5 0x7ff8fa80a9b8 cef_initialize
#6 0x7ff8d6946914 CefInitialize()
#7 0x7ff8d690200f Java_org_cef_CefApp_N_1Initialize
#8 0x7ff8de207994 <unknown>


The closest answer for this I found was with cefSharp which stated to place .pak files in the same directory as the library. I triple checked the links. Everything is in the same directory. However, the check still fails.
asevans48
Newbie
 
Posts: 6
Joined: Tue Apr 12, 2016 5:21 pm

Re: Embedding JCEF In Application in Eclipse

Postby magreenblatt » Thu Apr 14, 2016 2:39 am

You're missing the icudtl.dat file.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Embedding JCEF In Application in Eclipse

Postby asevans48 » Fri Apr 15, 2016 11:14 am

I checked it. It is actually in the directory listed by the program. The file looks like a bunch of bytes. However, the symlink didn't take. Thanks I may have a different problem but this may be more easily resolved.
asevans48
Newbie
 
Posts: 6
Joined: Tue Apr 12, 2016 5:21 pm


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 11 guests