Problems With Gnu Java Gij

LanguageTool cannot be run using gij because of some issues with getting file resources (getResource() and getResourceAsStream() seem to be broken).

You might get errors like this:

       at javax.swing.ImageIcon.<init>(
       at de.danielnaber.languagetool.gui.Main.<init>(
       at de.danielnaber.languagetool.gui.Main.main(

if you run LanguageToolGUI.jar, or like this with LanguageTool.jar:

Exception in thread "main" java.lang.RuntimeException: Failed to load rules: null
   at de.danielnaber.languagetool.JLanguageTool.getAllBuiltinRules(
   at de.danielnaber.languagetool.JLanguageTool.<init>(
   at de.danielnaber.languagetool.Main.<init>(
   at de.danielnaber.languagetool.Main.main(
Caused by: java.lang.reflect.InvocationTargetException
   at java.lang.reflect.Constructor.newInstance(
   at de.danielnaber.languagetool.JLanguageTool.getAllBuiltinRules(
   ...3 more
Caused by: Could not load file from classpath : /rules/en/det_a.txt
   at de.danielnaber.languagetool.rules.en.AvsAnRule.<init>(
   at java.lang.reflect.Constructor.newInstance(
   ...4 more

The only workaround is to use Sun Java (1.5 or newer) or IcedTea with OpenJDK. If you know why this issue appears, please contact LanguageTool developers :)

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License