This is a fork of java-cef. It's distributed as part of JetBrainsRuntime.
- Check the issue tracker. Probably the problem is known.
- Vote the for the opened issues. We track votes and take it into consideration for planning.
- JetBrains Platform Slack community
- Check CEF forum. It is a great source of knowledge about cef project.
- Report a bug at JetBrains youtrack.
- Get sources.
git clone https://github.com/JetBrains/jcef.git
- Install Apache Ant. Make sure that
ANT_HOME
is set. - Set
JAVA_HOME
. - Set
VS160COMNTOOLS
env variable to point onto your Visual Studio 2019 Community installation. E.g.VS160COMNTOOLS='C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools'.
- Install cmake. Set
JCEF_CMAKE
env variable. E.g.`JCEF_CMAKE='C:\cmake-3.27.0-rc2-windows-x86_64'`.
- Run at
<project_root>\jb\tools\windows
directory. Replacex86_64
witharm64
if needed.cmd /c build.bat all x86_64
- Check
jcef_win_x86_64.tar.gz
orjcef_win_arm64.tar.gz
file in the project root directory.
-
Assume that we are working on
x86_64
platform. Forx64
orx86_64
has to replaced witharm64
oraarch64
. -
Prepare the build environment for JetBrainsRuntime(JBR). Next command are run under Cygwin bash installed on this step.
Note: You may skip NVDA controller client installation, but you'd need to patch
mkimages_x64.sh
script. -
Get JBR sources
$ git clone https://github.com/JetBrains/JetBrainsRuntime.git $ cd JetBrainsRuntime
-
Switch to the required branch. E.g.
$ git checkout jbr17
-
Bring jcef build artifact from the previous steps. Assuming that our platform is
x86_64
.$ mkdir jcef_win_x64 $ tar -xvzf <jcef_project_root>/jcef_win_x86_64.tar.gz -C ./jcef_win_x64
-
(Optional). If NVDA Controller Client is not installed, patch mkimages_x64.sh. Remove the following line:
--with-nvdacontrollerclient=$NVDA_PATH \
-
Set
BOOT_JDK
env var. -
Run:
$ bash jb/project/tools/windows/scripts/mkimages_x64.sh 1 jcef
1
- is the build number. -
Check output dirs:
$ ls jbr* jbr_jcef-17.0.8.1-windows-x64-b1: bin conf include legal lib release jbrsdk_jcef-17.0.8.1-windows-x64-b1: bin conf include jmods legal lib release
- Get tools to build jcef
apt-get install ant git gcc cmake
. - Get tools to build jcef rpc
apt-get install bison flex pkg-config
. - Get sources
git clone https://github.com/JetBrains/jcef.git
- Set
JAVA_HOME
. - Run
./jb/tools/linux/build.sh all <x86_64 or arm64>
at the project root. - Check
jcef_linux_<x86_64 or arm64>.tar.gz
file in the project root directory.
- Get sources
git clone https://github.com/JetBrains/jcef.git
- Set
JAVA_HOME
. - Run
./jb/tools/mac/build.sh all <x86_64 or arm64>
at the project root. - Check
jcef_mac_<x86_64 or arm64>.tar.gz
file in the project root directory.
To be done
- Open
<project_root>/jb/project/java-gradle/build.gradle
as project in IntelliJ IDEA. - Edit
<project_root>/jb/project/java-gradle/gradle.properties
to specify path to the tested JBR+JCEF build. E.g.jbr_win = <path to jbr>/jbr_jcef-17.0.8.1-windows-x64-b1 jbr_mac = <path to jbr>/jbrsdk_jcef-17.0.8.1-osx-aarch64-b1/Contents/Home jbr_linux = <path to jbr>/jbr
- Reload the gradle project.
- Navigate a test in
<project_root>/java_tests/tests/junittests
and run.
See remote/README.md.