A simple framework for embedding Chromium-based browsers into Java-based applications.
OTHER License
This is a fork of java-cef. It's distributed as part of JetBrainsRuntime.
git clone https://github.com/JetBrains/jcef.git
ANT_HOME
is set.JAVA_HOME
.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'.
JCEF_CMAKE
env variable. E.g.
`JCEF_CMAKE='C:\cmake-3.27.0-rc2-windows-x86_64'`.
<project_root>\jb\tools\windows
directory. Replace x86_64
with arm64
if needed.
cmd /c build.bat all x86_64
jcef_win_x86_64.tar.gz
or jcef_win_arm64.tar.gz
file in the project root directory.Assume that we are working on x86_64
platform. For x64
or x86_64
has to replaced with arm64
or aarch64
.
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
apt-get install ant git gcc cmake
.apt-get install bison flex pkg-config
.git clone https://github.com/JetBrains/jcef.git
JAVA_HOME
../jb/tools/linux/build.sh all <x86_64 or arm64>
at the project root.jcef_linux_<x86_64 or arm64>.tar.gz
file in the project root directory.git clone https://github.com/JetBrains/jcef.git
JAVA_HOME
../jb/tools/mac/build.sh all <x86_64 or arm64>
at the project root.jcef_mac_<x86_64 or arm64>.tar.gz
file in the project root directory.To be done
<project_root>/jb/project/java-gradle/build.gradle
as project in IntelliJ IDEA.<project_root>/jb/project/java-gradle/gradle.properties
to specify path to the tested JBR+JCEF build.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
<project_root>/java_tests/tests/junittests
and run.See remote/README.md.