Back to Browse

JCEF (Java Chromium Embedded Framework) build guide for windows

15.5K views
Feb 10, 2019
26:28

I suggest watching in 1.25x speed. !IMPORTANT Over last few years the guys working on JCEF have finally decided to start providing recent versions of chromium, so check out this URL: https://github.com/jcefmaven/jcefmaven/releases In this video I am following the guide from the java cef repository. https://bitbucket.org/chromiumembedded/java-cef There is already j-cef build on maven, but it is outdated and there are some bugs coming from chromium itself so it is better to get the latest version. For the build process I have used java 11, python, cmake and Visual Studio 2017 with build tools v141. Also in the video I am showing how to dynamically add path variables withing the scope of the application using reflection. Link to the utility class for loading the native libraries: https://pastebin.com/kXDCM7dP Link to the google drive with the whole project for java 8: https://drive.google.com/file/d/1Dh-jqXj_uSwft1tjdr_bVmHAydYacNpV/view ------------------------------------------------------------------------------------------------ I found that there weren't any videos showing how to build the library and there were a lot of questions on stackoverflow so I decided to record a video following the guides and hopefully help someone. I will provide a link to a repo with the changes from the video soon, but you can message me and I will be glad to send you the code or the .jar file that we created in this video. Link to my facebook, if you want to message me: https://www.facebook.com/ceci2205 For those who are wondering if it is possible to run jcef on javafx - It is not currently possible since javafx does not provide an OpenGL Node to natively render the browser's frames. There is a way to do it with SwingNode, but it is still really hard to achieve and it will be more than 100 times slower. OpenJFX will have a way to render OpenGL content, but it is still in the works. Link to discussion: https://bitbucket.org/chromiumembedded/java-cef/issues/163/povide-javafx-node-for-jcef Watch my other video on how to build CEF (C++) https://www.youtube.com/watch?v=WuxaTPch12M

Download

1 formats

Video Formats

360pmp445.4 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

JCEF (Java Chromium Embedded Framework) build guide for windows | NatokHD