I am attempting to run the example code on a Linux 32bit machine. The root-error I receive is:
Caused by: java.lang.RuntimeException: Path /en/det_a.txt not found in class path at /rules/en/det_a.txt
at org.languagetool.databroker.DefaultResourceDataBroker.assertNotNull(DefaultResourceDataBroker.java:233)
at org.languagetool.databroker.DefaultResourceDataBroker.getFromRulesDirAsStream(DefaultResourceDataBroker.java:208)
at org.languagetool.rules.en.AvsAnRule.(AvsAnRule.java:59)
… which causes a cascade of other errors.
I native-searched and google-searched this forum but found no reference to “/en/det_a.txt”. I have found the problem reported at Java Ranch, etc, but with no resolution.
I am attempting to run the example code on a Linux 32bit machine. The
root-error I receive is:
Caused by: java.lang.RuntimeException: Path /en/det_a.txt not found in
class path at /rules/en/det_a.txt
There must be a file /rules/en/det_a.txt in your classpath, i.e. you need to
copy the “rules” and “resources” directories to your classpath directory
too, not just the LanguageTool JARs.