FS#44072 - [languagetool] Exception class not found when starting the app
Attached to Project:
Community Packages
Opened by William Gathoye (wget) - Friday, 06 March 2015, 14:18 GMT
Last edited by Andrzej Giniewicz (Giniu) - Monday, 17 July 2017, 22:31 GMT
Opened by William Gathoye (wget) - Friday, 06 March 2015, 14:18 GMT
Last edited by Andrzej Giniewicz (Giniu) - Monday, 17 July 2017, 22:31 GMT
|
Details
Description: I got the following exception, when I try to
launch languagetool. I tried on 2 ArchLinux systems and
could reproduce the issue. I downloaded the languagetool.zip
from the official website and extracted it to
/usr/share/java/languagetool which solved the problem. It
seems thus this is an ArchLinux specific problem. Now
languagetool is working again, TexStudio could use it
properly.
Additional info: [user@localhost ~]$ java -jar /usr/share/java/languagetool/languagetool.jar Exception in thread "main" java.lang.NoClassDefFoundError: org/languagetool/language/RuleFilenameException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2615) at java.lang.Class.getMethod0(Class.java:2856) at java.lang.Class.getMethod(Class.java:1668) at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486) Caused by: java.lang.ClassNotFoundException: org.languagetool.language.RuleFilenameException at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 6 more Steps to reproduce: java -jar /usr/share/java/languagetool/languagetool.jar |
This task depends upon
Closed by Andrzej Giniewicz (Giniu)
Monday, 17 July 2017, 22:31 GMT
Reason for closing: Works for me
Additional comments about closing: I tested and it works.
Monday, 17 July 2017, 22:31 GMT
Reason for closing: Works for me
Additional comments about closing: I tested and it works.
If you start it using provided command, everything works. Two solutions should work:
1) start languagetool as a server using provided command (languagetool) and TeXStudio should be able to use it.
2) configure TeXStudio to use languagetool command. I believe setting "java" executable to "languagetool" and leaving jar empty should do the trick.
Anyway, I will look into it to see if we can make it work with TeXStuio and our directory layout.
/usr/share/java/languagetool/*.jar
as your classpath. It should do the trick.
java: languagetool
path: .
options: --http -p 8081
it should work that way (you will use same wrapper as command line version and GUI version).