/chromium-samples

Complete Sample projects for Equo Chromium

Primary LanguageJava

Chromium Samples

Sample applications that use and integrate Equo Chromium

The samples allow you to run applications that use different toolkits:

  • SWT (Standart Widget Toolkit)
  • Standalone (plain Java application as Standalone browser wihout UI depdencies)
  • Windowless (without GUI window)
  • Swing (Swing Toolkit)
  • RCP (Eclipse RCP application)

Swing based apps require Java 11 or later versions in order to run.

Our Chromium RCP application requires Java 21 and Maven 3.9 or later versions in order to run.

Run Equo Chromium samples

Maven applications

To run a Maven application(maven-samples folder), you need to go into the project folder(swt, standalone, swing) and run the command:

mvn verify

The SWT sample has a Windowless mode which you can test by running the command:

mvn verify -Dwindowless

To build the RCP sample:

mvn clean verify

This will build a product called ChromiumRCP for the current OS and arch. We currently support arm only on mac(Contact us). To run the RCP sample:

To run the RCP sample:

mvn verify -Drun

You can also run the RCP sample from Eclipse:

Import the RCP folder as an Existing project from folder or archive -> Open the target file sample.rcp.target, wait for the dependencies to be downloaded and click on Set as Active Target Platform -> Open the product file sample.rcp.product inside folder sample.product, and click on Launch an Eclipse RCP Application to run the sample.

Gradle applications

To run a Gradle application(gradle-samples folder), you need to go into the project folder(swt, standalone or swing) and run the command:

./gradlew run

The SWT sample has a Windowless mode which you can test by running the command:

./gradlew run --args=windowless

These basic applications were built as simple samples but you can make use of the Equo documentation where you will find everything you need for your development.