I have been developing JOGL, J3D apps for several years that seem to run fine on OS X and Windows, but I recently learned of problems on Ubuntu/Linux.
I have tested five apps on two versions of Ubuntu (18.04.1, 18.10) and four versions of Java (Oracle 8, OpenJDK 8, OpenJDK 10.0.2, and OpenJDK 11). Ubuntu versions running in VirtualBox 6.0 on Mac OS 10.14.2.
Non-graphics (non-JOGL/J3D) programs work fine. The only graphics programs that work are one version from July 2014 that will run on Oracle Java 8 on Ubuntu 18.10 and another compiled on FEB 2018 that will run on Ubuntu 18.10 on either Oracle Java 8 or OpenJDK 8. Some X11 shutdown errors, but both work.
Hoping to track down the problems one-by-one, I tried compiling on Ubuntu 18.04 using Netbeans 8.2 and Oracle Java 8 (the versions I used on the Mac) and JOGL 2.3.2 from OCT2015 and J3D from APR2015.
But, I get immediate errors. Probably a Netbeans setup issue and the JOGL 2.3.2 and J3D APR2015 libraries are found, but it says various packages do not exist and it cannot find things like...
Moreover, there is (almost?) no problem with JOGL and GNU Linux. I have used JOGL with various GNU Linux distributions since 2006, it works like a charm. There is only one known bug with the latest versions of Mesa.
The problem is that your post is very inaccurate. You wrote "But, I get immediate errors" but which errors do you get? How can you expect to get some help by providing so few pieces of information about your concern?
Thanks, Julien, I am back at my desk now and working on this.
I had missed the Java3D upgrade as I had not had any problems with my old code - I have been working solely with JOGL GLSL for a few years now and not Java3D. I will check into that.
My post was very general because I think my problem is general Netbeans setup, and nothing JOGL-specific. The errors I was reporting are Netbeans errors flagging import lines with the error msg. "Package xxxxx does not exist."
I will check out the updated Java3D libs and see if that, as I expect, solves all or most of my problems.
Will report here the results.
UPDATE: FWIW, I can now compile in Ubuntu. At least I now see problems to investigate and more experiments to run before bothering the community. Thanks, again.
UPDATE: Okay, I have had my first round of success using a recent jogamp-fat.jar (FEB 2018?) and the 2017 j3D jars provided by Julien.
All three of my test apps in their latest form (not the old downloaded versions) compile and run in Ubuntu with Oracle 8. The non-J3D ones also mostly run under OpenJDK. I won't post any error details until I have time to do some more research on my own.
Here are pics of two apps running in Ubuntu 18.04, Oracle Java 8 on a VirtualBox 6.0 under Mac OS X 10.14.2