SimpleVTK Java example crashing on MacOS

We have an issue on that topic https://gitlab.kitware.com/vtk/vtk/-/issues/17831