NoClassDefFoundError

i am using languagetool-1.9.jar for my simple java application.

here is the sample code got from your site.

JLanguageTool langTool = new JLanguageTool(new AmericanEnglish());
langTool.activateDefaultPatternRules();
List matches = langTool.check("A sentence " +
“with a error in the Hitchhiker’s Guide tot he Galaxy”);

for (RuleMatch match : matches) {
  System.out.println("Potential error at line " +
      match.getLine() + ", column " +
      match.getColumn() + ": " + match.getMessage());
  System.out.println("Suggested correction: " +
      match.getSuggestedReplacements());
}

i am getting below error while running above code in eclipse.

Exception in thread “main” java.lang.NoClassDefFoundError: morfologik/stemming/IStemmer
at org.languagetool.language.English.getTagger(English.java:92)
at org.languagetool.JLanguageTool.(JLanguageTool.java:193)
at org.languagetool.JLanguageTool.(JLanguageTool.java:163)

and then i just go through your site for solve this error.
but i can’t understand.please help me proceed further.

This has been discussed at http://languagetool-user-forum.2306527.n4.nabble.com/Cannot-use-Language-AmericanEnglish-td4642226.html - if that doesn’t help, you’ll need to provide more details (do you use Maven, which IDE do you use etc).