Igniter Igniter - 4 months ago 27
Java Question

package org.languagetool does not exist

I am using java languagetool for the first time. I took sample example and tried to run it. It has imported files

import org.languagetool.JLanguageTool;
import org.languagetool.Language;
import org.languagetool.Languages;
import org.languagetool.rules.RuleMatch;


I have already added "languagetool-core-2.2-sources.jar" in libraries folder, but I am getting "package org.languagetool does not exist" error. I am using netbeans, please help me in getting out of this. Thanks

Answer

You have added the SOURCE jar file, which will not help you here. You want the packaged compiled classes:

<dependency>
    <groupId>org.languagetool</groupId>
    <artifactId>languagetool-core</artifactId>
    <version>2.2</version>
</dependency>
Comments