À propos
Framework simple permettant d’intégrer des navigateurs basés sur Chromium dans des applications Java.
Autres projetsProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalWelcome
This is a fork of java-cef. It's distributed as part of JetBrainsRuntime.
Quick Links
Help
- 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.
Building JCEF
Building on Windows
- Get sources.
git clone https://github.com/JetBrains/jcef.git - Install Apache Ant. Make sure that
ANT_HOMEis set. - Set
JAVA_HOME. - Set
VS160COMNTOOLSenv variable to point onto your Visual Studio 2019 Community installation. E.g.
Or by callingVS160COMNTOOLS='C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools'.vcvarsall.bat amd64orvcvarsall.bat amd64_arm64, it will set that parameter automatically. - Install CMake. Set
JCEF_CMAKEenv variable. E.g.`JCEF_CMAKE='C:\cmake-3.27.0-rc2-windows-x86_64'`. - Python 3 should be installed in the system.
If it's not installed by installer and registered in the registry (PEP 514), set
PYTHON_EXECUTABLEenv variable, e.g.PYTHON_EXECUTABLE=C:\Tools\Python\python.exe - Run at
<project_root>\jb\tools\windowsdirectory. Replacex86_64witharm64if needed.cmd /c build.bat all x86_64 - Check
jcef_win_x86_64.tar.gzorjcef_win_arm64.tar.gzfile in the project root directory.
Building JetBrainsRuntime with JCEF.
Assume that we are working on
x86_64platform. Forx64orx86_64has to replaced witharm64oraarch64.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.shscript.Get JBR sources
$ git clone https://github.com/JetBrains/JetBrainsRuntime.git $ cd JetBrainsRuntimeSwitch to the required branch. E.g.
$ git checkout jbr17Bring 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_JDKenv var.Run:
$ bash jb/project/tools/windows/scripts/mkimages_x64.sh 1 jcef1- 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
Building on Linux
- 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.gzfile in the project root directory.
Building on Mac
- 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.gzfile in the project root directory.
Developing with CLion
To be done
Developing with IntelliJ IDEA and running the tests
- Open
<project_root>/jb/project/java-gradle/build.gradleas project in IntelliJ IDEA. - Edit
<project_root>/jb/project/java-gradle/gradle.propertiesto 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/junittestsand run.
Out of process CEF
See remote/README.md.
Explorer des projets similaires
Chargement…