ok thanks got it now. But like other people in that thread
I am getting the error:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)
Caused by: java.lang.IllegalArgumentException: 'en' is not a language code known to LanguageTool. Supported language codes are: xx-XX. The list of languages is read from META-INF/org/languagetool/language-module.properties in the Java classpath. See http://wiki.languagetool.org/java-api for details.
at org.languagetool.Languages.getLanguageForShortCode(Languages.java:161)
at org.languagetool.synthesis.en.EnglishSynthesizer.<init>(EnglishSynthesizer.java:61)
at org.languagetool.rules.en.AbstractEnglishSpellerRule.<init>(AbstractEnglishSpellerRule.java:34)
at org.languagetool.rules.en.MorfologikAmericanSpellerRule.<init>(MorfologikAmericanSpellerRule.java:34)
at org.languagetool.language.AmericanEnglish.getRelevantRules(AmericanEnglish.java:46)
at org.languagetool.JLanguageTool.getAllBuiltinRules(JLanguageTool.java:247)
at org.languagetool.JLanguageTool.<init>(JLanguageTool.java:167)
at org.languagetool.JLanguageTool.<init>(JLanguageTool.java:152)
at application.Main.main(Main.java:34)
... 11 more
Exception running application application.Main
I did add the META-INF to classpath but you posted in that thread:
After “zip -r languages.jar META-INF/ org/” you need to add languages.jar to your classpath. How to do that exactly depends on your local environment or IDE.
Where is the languages.jar?