/en/det_a.txt not found in class path

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.

Is there a fix to this?

Thank You,

JK

On Samstag, 21. Juli 2012, you wrote:

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.

Regards
Daniel


http://www.danielnaber.de

OK - I found it - the unzip proggy’s settings botched the paths.

Note to others, unzip the zip-file, with full folder paths expanded, into the root of the classpath for your application.