New version is available You are viewing the documentation for JxBrowser 6 which is not supported since December 2019. Go to the current documentation.
List icon Contents

This guide describes how to add JxBrowser to a Java application classpath.

In order to add JxBrowser to your application classpath please download a ZIP archive with the JxBrowser distribution package, extract it, and add the required JxBrowser JAR files from the lib directory to your application classpath.

Dependencies

Cross-Platform

To add JxBrowser library that works on Windows, macOS, and Linux (Intel and ARM), please add the following JAR files to your application classpath:

  • jxbrowser-6.24.3.jar
  • jxbrowser-win32-6.24.3.jar
  • jxbrowser-win64-6.24.3.jar
  • jxbrowser-mac-6.24.3.jar
  • jxbrowser-linux64-6.24.3.jar

For example:

java -classpath jxbrowser-6.24.3.jar;jxbrowser-win32-6.24.3.jar;\
jxbrowser-win64-6.24.3.jar;jxbrowser-mac-6.24.3.jar;jxbrowser-linux64-6.24.3.jar; <app-class>

Platform-Specific

If you need JxBrowser JAR to work only on a specific platform, you can include only the corresponding JAR files to the program classpath as described below.

If your Java application runs only on Windows and macOS platforms and you do not support Linux platform, then you can include only Windows and macOS dependencies.

Windows 32-bit

java -classpath jxbrowser-6.24.3.jar;jxbrowser-win32-6.24.3.jar <app-class>

Windows 64-bit

java -classpath jxbrowser-6.24.3.jar;jxbrowser-win64-6.24.3.jar <app-class>

macOS 64-bit

java -classpath jxbrowser-6.24.3.jar;jxbrowser-mac-6.24.3.jar <app-class>

Linux 64-bit

java -classpath jxbrowser-6.24.3.jar;jxbrowser-linux64-6.24.3.jar <app-class>