Re: JOGL 2.3.2 example compiles but fails to run (Maven 3.8.2, NetBeans 12.4, OpenJDK 16.0.2, Lubuntu 21.10)
Posted by neblaz on Sep 05, 2021; 7:45pm
URL: https://forum.jogamp.org/JOGL-2-3-2-example-compiles-but-fails-to-run-Maven-3-8-2-NetBeans-12-4-OpenJDK-16-0-2-Lubuntu-21-10-tp4041246p4041263.html
Finally :)
One solution might be to first install the jar into local Maven repository, for example:
mvn install:install-file -Dfile=/home/me/PROGRAMs/JOGL/jogamp-fat/jogamp-fat.jar -DgroupId=com.myjogampfat -DartifactId=jogamp-fat -Dversion=2.4.0 -Dpackaging=jar
Then use it in pom.xml:
<dependencies>
<dependency>
<groupId>com.myjogampfat</groupId>
<artifactId>jogamp-fat</artifactId>
<version>2.4.0</version>
</dependency>
</dependencies>
Compiles and Run File runs the program.