Note: The following answer is valid for JxBrowser versions older than 6.16. Starting from the 6.16 version, the library detects the missing dependencies automatically on startup, using the ldd command if it is available in the environment.(注意:以下答案对6.16之前的JxBrowser版本有效。从6.16版本开始,该库在启动时会使用ldd命令(如果环境中可用)自动检测丢失的依赖项。)
The most common reason for the described error message is the missing dependencies in the environment where you are trying to run JxBrowser. To check whether there are any missing dependencies, the following steps must be performed:(所描述错误消息的最常见原因是您尝试运行JxBrowser的环境中缺少依赖项。要检查是否缺少任何依赖项,必须执行以下步骤:)
1. Extract the jxbrowser-linux32-<version>.jar/jxbrowser-linux64-<version>.jar JAR files with the Chromium binaries. The archives can have the following names: chromium-linux32.xz, chromium-linux64.xz, chromium-linux32.7z, chromium-linux64.7z(1.使用Chromium二进制文件解压缩jxbrowser-linux32- <版本> .jar / jxbrowser-linux64- <版本> .jar JAR文件。归档文件可以具有以下名称:chrome-linux32.xz,chromium-linux64.xz,chromium-linux32.7z,chromium-linux64.7z) 版本> 版本>
2. Extract the archives into a folder (e.g. ~/jxbrowser_bin)(2.将档案解压缩到一个文件夹中(例如〜/ jxbrowser_bin))
3. Go to the folder with the unpacked files (e.g. cd ~/jxbrowser_bin)(3.转到包含解压缩文件的文件夹(例如cd〜/ jxbrowser_bin))
4. Run the following command: (4.运行以下命令:)
LD_LIBRARY_PATH=. ldd jxbrowser-chromium
The command will show you the list of the jxbrowser-chromium dependencies. Some of them can be marked as not found. (该命令将显示jxbrowser-chromium依赖项列表。其中一些可以标记为未找到。)
If there are some dependencies which were not found, you must install them and run JxBrowser again.(如果找不到某些依赖项,则必须安装它们并再次运行JxBrowser。)