Back to LanguageTool Homepage - Privacy - Imprint

English.getRelevantRules throws exception when initializing the languagetool.

I am using “language-en” rev=“5.6” but get this error when initializing the tool. I am using netbeans and ivy to get all the dependencies. Any suggestion to overcome this is greatly appreciated.

java.lang.NoSuchFieldError: KILOGRAM
	at org.languagetool.rules.AbstractUnitConversionRule.<clinit>(AbstractUnitConversionRule.java:57)	
	at org.languagetool.language.AmericanEnglish.getRelevantRules(AmericanEnglish.java:57)
	at org.languagetool.JLanguageTool.getAllBuiltinRules(JLanguageTool.java:492)
	at org.languagetool.JLanguageTool.<init>(JLanguageTool.java:324)
	at org.languagetool.JLanguageTool.<init>(JLanguageTool.java:293)
	at org.languagetool.JLanguageTool.<init>(JLanguageTool.java:353)
	at org.languagetool.JLanguageTool.<init>(JLanguageTool.java:259)

I get this error when initializing the languagetool:
JLanguageTool langTool = new JLanguageTool(new AmericanEnglish());

I tried BritishEnglish and AustralianEnglish.

	java.lang.NoClassDefFoundError: Could not initialize class org.languagetool.rules.en.UnitConversionRule	
	at org.languagetool.language.AustralianEnglish.getRelevantRules(AustralianEnglish.java:59)

java.lang.NoClassDefFoundError: Could not initialize class org.languagetool.rules.en.UnitConversionRuleImperial