JxBrowser supports Chromium plugins. This guide describes how to get the information about all the installed and available Chromium plugins, how to enable or disable a specified plugin on a web page, etc.

Please use Plugins to get information about all the available plugins and enable/disable plugins on a web page. By default all plugins are enabled.

Installed Plugins

To get information about all the installed and available plugins use the following code:

plugins.list().forEach(plugin -> {
    String name = plugin.name();
    String description = plugin.description();
    String version = plugin.version();

Filtering Plugins

Every time when a web page needs to access a plugin the AllowPluginCallback is invoked. In this callback you can tell the web page whether the requested plugin is allowed.

The following example demonstrates how to deny all plugins with the application/pdf MIME type:

plugins.set(AllowPluginCallback.class, (params) -> {
    // Get plugin MIME types.
    List<MimeType> pluginMimeTypes = params.plugin().mimeTypes();
    // Deny all plugins with the "application/pdf" MIME type.
    if (pluginMimeTypes.contains(MimeType.of("application/pdf"))) {
        return Response.deny();
    return Response.allow();


JxBrowser supports the built-in Chromium PDF Viewer plugin. You can display a PDF file available on a remote web server using URL of the PDF file, or a PDF file located in your local file system:

Chromium PDF Viewer

If you need to download PDF documents instead of displaying them, then you must disable PDF Viewer.

Disabling PDF Viewer

By default, the built-in PDF Viewer is enabled. In order to disable it, use the following API introduced in 7.9:


Adobe Flash

Adobe Flash reaches its end-of-life in December 2020. Chromium drops support for Adobe Flash starting from the 88 version. Therefore, as soon as JxBrowser gets upgraded to the Chromium version 88+, Flash will stop working regardless of whether the plugin is installed or not.
The versions of JxBrowser based on Chromium 87 and below will continue supporting Flash if the corresponding plugin is installed in the system.

JxBrowser supports Adobe Flash PPAPI plugin. In order to display Flash content you need to download and install Adobe Flash Player. Flash content is displayed in the windowless mode, so make sure that the Flash content you display on the web page has the wmode=opaque attributed.

Windows and macOS

Download the Adobe PPAPI Flash Player installer for your operating system:

Download Adobe Flash Player

Run the downloaded installer and follow the instructions to install the Adobe PPAPI Flash plugin. JxBrowser will automatically find the installed Flash PPAPI plugin and use it to display Flash content.


Installation process of PPAPI Flash can vary depending on the Linux distribution. The following instruction describes how to install PPAPI Flash on Ubuntu 12.04+.

  1. Add PPA repository and install the pepflashplugin-installer package.

     sudo add-apt-repository ppa:skunk/pepper-flash
     sudo apt-get update
     sudo apt-get install pepflashplugin-installer
  2. Specify the path to the installed PPAPI Flash if necessary. JxBrowser searches PPAPI Flash in the default locations which are different on various Linux distributions. Here is the list of the locations where JxBrowser expects to find PPAPI Flash:

  3. In case you have installed PPAPI Flash at a different location please specify the path to the Flash library using Chromium switchers when constructing an Engine instance:

     Engine engine = Engine.newInstance(EngineOptions.newBuilder(...)

NPAPI Plugins

Starting from version 49 Chromium does not support any of NPAPI plugins including Microsoft Silverlight and Java Applet. Hence, JxBrowser does not support them either.


ActiveX is not supported by Chromium, so JxBrowser does not support it as well.


Starting from 7.4 version, JxBrowser allows enabling Widevine through the Engine options.

Go Top