Categories
Status

Getting started with Java CEF on Linux

This is a brief tutorial on how to get started with Java CEF on Linux. The primary repository for Java CEF is here: https://bitbucket.org/chromiumembedded/java-cef

Without delay, here are the steps to get Java CEF running on Linux64

Download the latest Linux 64 release from here: https://github.com/jcefbuild/jcefbuild/releases

Unzip the archive you downloaded

Make sure $JAVA_HOME is set in terminal.

echo $JAVA_HOME

Make sure $LD_LIBRARY_PATH is set in terminal.

echo $LD_LIBRARY_PATH

If it is not set, set it.

export LD_LIBRARY_PATH=/usr/lib/jvm/java-11-openjdk-amd64/lib

Now, we should be able to run the app.

In the directory of the unzipped archive cd to the java-cef-build-bin directory

Execute the sample app by using the following command ./run.sh

You should see an app like the one in the screenshot below

One reply on “Getting started with Java CEF on Linux”

Very nice!

Note you don’t need to set `JAVA_HOME` or `LD_LIBRARY_PATH`. The `run.sh` file is robust enough to handle all those, so all you need to do is `./run.sh`.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.