Login  Register

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 gouessej on Sep 05, 2021; 7:20pm
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-tp4041246p4041260.html

Yes, I agree with you, it's less error prone, I just have to tell the beginners to put it into the classpath and that's all.

I don't think that it will work in a NetBeans Maven project but it works in a NetBeans Java project:
https://jogamp.org/wiki/index.php?title=Setting_up_a_JogAmp_project_in_your_favorite_IDE#NetBeans_IDE

Another solution consists in fixing your try published on StackOverflow, remove {basedir}, try with an absolute path or a relative path. If you can, use a relative path. Look at this solution:
https://stackoverflow.com/questions/4955635/how-to-add-local-jar-files-to-a-maven-project/51647143#51647143
Julien Gouesse | Personal blog | Website