Java Wrapper for gclib

Note that the wrapper requires the C Library to be installed.

Java 17 or newer is supported. The examples are provided as a Maven project.

Windows

> robocopy /s "%GCLIB_ROOT%\examples\java" java
> cd java
> mvn compile
> mvn exec:java -Dexec.mainClass=examples.HelloWorld --quiet
gclib version is 2.5.0
Hello World!

Linux

$ cp -r /usr/share/gclib/examples/java java
$ cd java
$ mvn compile
$ mvn exec:java -Dexec.mainClass=examples.HelloWorld --quiet
gclib version is 2.5.0
Hello World!

Older Versions

For compatibility with existing Java applications, see the gclib 2.4.1 documentation for instructions on installing the first iteration of the Java wrapper, as well as examples and API documentation.

Note that Java wrapper version 1.0.0 is still supported by current versions of gclib.