To compile a java-gnome class it's necessary to add the gtk-4.1.jar jar in the classpath. The jar is available on Debian (and all Debian-based distributions) in the libjava-gnome-java package, which can be found in the official repositories (the jar is installed under the /usr/share/java path).
How to add gtk-4.1.jar to the classpath
Under your project create a folder /lib/com.gtk/gtk/4.1 place the gtk-4.1.jar to the directory.
Dependency
To compile a java-gnome class it's necessary to add the gtk-4.1.jar jar in the classpath. The jar is available on Debian (and all Debian-based distributions) in the libjava-gnome-java package, which can be found in the official repositories (the jar is installed under the /usr/share/java path).
How to add gtk-4.1.jar to the classpath
Under your project create a folder
/lib/com.gtk/gtk/4.1
place thegtk-4.1.jar
to the directory.Update pom.xml
Code
Result