loading vtk in java fails

Ok, thanks. I’ll tried that out and it does not work.

A documentation would help. The behavior is cryptic; you seem to run from one problem to the next and all you can do is try and error.

Just unpack it. Running the usual CMake setup and run ninja build results in linker crashes such as:

java.lang.UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError: C:\HEAD\env\app\lib\vtkFiltersCellGridJava.dll: Eine DLL-Initialisierungsroutine ist fehlgeschlagen

Redist is installed, every depended DLL is available. Something in the dll seems to be disliked by the java vm when it is build in a certain way. I had a configuration which was loadable, but after a windows update it fails again with the same errors. The thing was that in every case it worked, the jaring failed and I had to jar it by hand.

It would be awesome if anybody had an idea what could cause the builded dll to be rejected by the jvm and which cmake flag is producing that.

The unloadable dlls are all java wrapping dlls:
vtkFiltersCellGridJava
vtkIOLegacyJava
vtkParallelCoreJava …