INL/BlackLab

"Getting Started" not working

Closed this issue · 3 comments

The instructions are, as far as I understand, to download and extract blacklab-core-3.0.1.jar. I did that. Where is the IndexTool?

Index the data

There's a commandline tool to create a corpus called IndexTool. To use it, also download the blacklab-core-VERSION.jar from the GitHub releases page (opens new window)and extract it somewhere convenient.

From this directory, run the IndexTool without parameters for help information:

java -cp "blacklab.jar:lib" nl.inl.blacklab.tools.IndexTool

That results in:

$ java -cp "blacklab.jar:lib" nl.inl.blacklab.tools.IndexTool
Error: Could not find or load main class nl.inl.blacklab.tools.IndexTool

Thanks for your tips!

Okay, I got it to run with java -cp lib/blacklab-tools-3.0.1.jar nl.inl.blacklab.tools.IndexTool, but now I get

Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: nl/inl/blacklab/tools/IndexTool has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

I guess this means my Java is too old. I will try to update it and try again.

I updated java and the command runs properly if I enter java -cp blacklab-3.0.1.jar:lib nl.inl.blacklab.tools.IndexTool.

Thanks for the feedback, I will update the page soon!