Back to LanguageTool Homepage - Privacy - Imprint

Java API Example


I'm new here, and would like to use the API for my java program.
However, when I try to examine with the example gui program stated in the page, it does not work.
And, when I start from scratch and follow the instructions on the page, I got the exception:
Exception in thread "main" java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonFactory.requiresPropertyOrdering()Z
at com.fasterxml.jackson.databind.ObjectMapper.(
at com.fasterxml.jackson.databind.ObjectMapper.(
at org.languagetool.rules.OpenNMTRule.(
at org.languagetool.rules.OpenNMTRule.(
at org.languagetool.language.English.getRelevantRules(
at org.languagetool.language.BritishEnglish.getRelevantRules(
at org.languagetool.JLanguageTool.getAllBuiltinRules(
at org.languagetool.JLanguageTool.(
at org.languagetool.JLanguageTool.(
at myAnalyze.main(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at com.intellij.uiDesigner.snapShooter.SnapShooter.main(

Need help from you all. Thanks in advance!

(Daniel Naber) #2

Which documentation are you following and which version of Java are you using? Do you use Maven?


I'm following the Java API page.
Yes, I did import with Maven using IntelliJ

(Daniel Naber) #4

What about this?


Got it! thank you!!