For most use cases, run Tika as a separate service rather than embedding it: tika-server (REST) or tika-grpc. A parser crash then cannot affect your application, you deploy from the official Docker images, you can call it from any language, and you upgrade Tika independently of your own release cycle.