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-7.5.jar
  • jxbrowser-win32-7.5.jar
  • jxbrowser-win64-7.5.jar
  • jxbrowser-mac-7.5.jar
  • jxbrowser-linux64-7.5.jar
  • jxbrowser-linux64-arm-7.5.jar

For example:

java -classpath jxbrowser-7.5.jar;jxbrowser-win32-7.5.jar;\
jxbrowser-win64-7.5.jar;jxbrowser-mac-7.5.jar;jxbrowser-linux64-7.5.jar; \
jxbrowser-linux64-arm-7.5.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-7.5.jar;jxbrowser-win32-7.5.jar <app-class>

Windows 64-bit

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

macOS 64-bit

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

Linux 64-bit

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

Linux 64-bit ARM

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

GUI Toolkit

If you develop a Java GUI application where you would like to display web content, then you need to add one more JAR file to your application classpath depending on the GUI toolkit you use:

Swing

java -classpath jxbrowser-7.5.jar;jxbrowser-swing-7.5.jar <app-class>

JavaFX

java -classpath jxbrowser-7.5.jar;jxbrowser-javafx-7.5.jar <app-class>
Go Top