Dynamically loading JCEF

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

Dynamically loading JCEF

Postby stefanreich » Mon Nov 26, 2018 12:40 pm

Hi, I'm referring to the Linux64 platform. I'm trying to add JCEF to an already running Java program without having to prepare this first. (It's an operating system that dynamically loads modules, one of which is the JCEF based browser.)

In run.sh, it says:

Code: Select all
# Necessary for jcef_helper to find libcef.so.
export LD_LIBRARY_PATH=$LIB_PATH

# Preload libcef.so to avoid crashes.
LD_PRELOAD=$LIB_PATH/libcef.so java -cp "./bin:./bin/*" -Djava.library.path=$LIB_PATH tests.detailed.MainFrame "$@"


I can probably set the library path dynamically one way or another.

But what about the "preload libcef.so to avoid crashes" line? Is it absoutely necessary to do this?

Many greetings,
Stefan
stefanreich
Newbie
 
Posts: 8
Joined: Thu Jul 19, 2018 6:23 am

Re: Dynamically loading JCEF

Postby Czarek » Tue Nov 27, 2018 5:57 am

Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Dynamically loading JCEF

Postby stefanreich » Mon Dec 10, 2018 3:46 pm

Yes, seems to work in a very cursory test... thanks.
stefanreich
Newbie
 
Posts: 8
Joined: Thu Jul 19, 2018 6:23 am


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 20 guests