You can use IKVM.Maven.SDK https://github.com/ikvmnet/ikvm-maven. I had this issue at work recently. This works for .NET 8 when working with a PDF file.
<ItemGroup>
<PackageReference Include="IKVM.Maven.Sdk" Version="1.6.9" />
</ItemGroup>
<ItemGroup>
<MavenReference Include="org.apache.tika:tika-core" Version="2.9.2"></MavenReference>
<MavenReference Include="org.apache.tika:tika-parsers-standard-package" Version="2.9.0"></MavenReference>
</ItemGroup>
using org.apache.tika.parser;
using ikvm.io;
using org.apache.tika.sax;
using org.apache.tika.metadata;
using FileStream fs = new FileStream("some-file-name-here.pdf", FileMode.Open);
using InputStreamWrapper stream = new InputStreamWrapper(fs);
BodyContentHandler handler = new BodyContentHandler();
Parser parser = new org.apache.tika.parser.pdf.PDFParser();
Metadata metdata = new Metadata();
ParseContext parseContext = new ParseContext();
parser.parse(stream, handler, metdata, parseContext);
Console.WriteLine(handler.toString());