I have installed VTK for a physics simulation program called Starfish with its Github. But I am not asking for any physics help, but rather I am trying to add VTK as a library dependency to Starfish so that it can be run on Intellij.
Starfish is written in Java and when I installed VTK, and tried to add it in my IDE, but it doesn't work no matter what I do. The project throws: java: package vtk does not exist
whenever I run the project's main or try to build it. The whole VTK dependency is not recognized. The VTK library is composed of dll
type files and there are no JAR files for it. Also, there does not seem to be a Maven dependency for it as well, and Starfish is not a Maven project.
I have VTK version 9.2.2.
I have tried:
Adding VTK as a module dependency under the project structure > project settings > modules > dependencies > choosing the path of the VTK installation
Adding VTK as a library under project structure > project settings > libraries
Adding the path to VTK
/bin
via-Djava.library.path="C:/path/to/VTK
as a VM option in the run config of IntellijAdding VTK to the global libraries under project structure > Platform settings > global libraries
Restarting and invalidating the cache
Deleting the
.idea
directory and restartingSearching online for many days like stackoverflow, VTK forums, IntelliJ's forums, etc
I am out of ideas on what to try next. Any suggestions would be greatly appreciated. Thanks.