Problem with java bindings in VTK 9

OK, so running the right demo gives:

Exception in thread “AWT-EventQueue-0” com.jogamp.opengl.GLException: Profile GL4bc is not available on X11GraphicsDevice

with a bunch of details and a stack trace. We do some things to tell Qt to make a suitable GL profile for us. We probably need to tell JOGL something similar.

First of all - I’m focusing on the mac, but yes, I would think you want it running on Linux as well.

And this GL problem was what I brought up in https://gitlab.kitware.com/vtk/vtk/-/issues/17831 – I had to update the code to use GLProfile.getMaximum(true) instead of GLProfile.getDefault() to force it to load a proper GL profile (although if you know of something better to use please let me know). Once I did that however I ended up getting the invalid framebuffer issues I mentioned in the ticket.