Example applications
A set of example applications is available on the java-gi/examples repository. To run an example, install Java (OpenJDK 25 or any later version) and Gradle (8.3 or newer), and clone the Git repository:
Move into one of the example folders and run gradle run:
Running
Some of the examples are written in Scala or Closure, and assume that SBT (for Scala) or Clojure is installed. Follow the instructions in the README.md file for those examples to run them.
If you see an error about a missing library, make sure that all dependencies are installed. If necessary, you can override the Java library path with the -Djava.library.path= JVM argument in the build script. Read here for more detailed instructions about running Java-GI on different operating systems.