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:
java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(ImageIcon.java:155)
at de.danielnaber.languagetool.gui.Main.<init>(Main.java:94)
at de.danielnaber.languagetool.gui.Main.main(Main.java:571)
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(JLanguageTool.java:227)
at de.danielnaber.languagetool.JLanguageTool.<init>(JLanguageTool.java:137)
at de.danielnaber.languagetool.Main.<init>(Main.java:68)
at de.danielnaber.languagetool.Main.main(Main.java:367)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance(libgcj.so.90)
at de.danielnaber.languagetool.JLanguageTool.getAllBuiltinRules(JLanguageTool.java:213)
...3 more
Caused by: java.io.IOException: Could not load file from classpath : /rules/en/det_a.txt
at de.danielnaber.languagetool.tools.Tools.getStream(Tools.java:256)
at de.danielnaber.languagetool.rules.en.AvsAnRule.<init>(AvsAnRule.java:62)
at java.lang.reflect.Constructor.newInstance(libgcj.so.90)
...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 :)
page revision: 2, last edited: 18 Apr 2009 09:34