Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 628962 - app-text/languagetool-3.5-r1 fails to start
Summary: app-text/languagetool-3.5-r1 fails to start
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-26 10:05 UTC by Cddr
Modified: 2017-08-27 04:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cddr 2017-08-26 10:05:36 UTC
app-text/languagetool-3.5-r1 does not work.

How to reproduce:

java -jar /usr/share/languagetool/lib/languagetool-commandline.jar

Output:

Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: org/languagetool/rules/Rule
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
        at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
        at java.lang.Class.getMethod0(Class.java:3018)
        at java.lang.Class.getMethod(Class.java:1784)
        at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: org.languagetool.rules.Rule
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 7 more

`java -version' output:

Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on
openjdk version "1.8.0_141"
OpenJDK Runtime Environment (IcedTea 3.5.0) (Gentoo icedtea-3.5.0)
OpenJDK 64-Bit Server VM (build 25.141-b15, mixed mode)

BTW, git version (LanguageTool-3.9-SNAPSHOT) compiles and seems work (French module test fails though).
Comment 1 Tim Harder gentoo-dev 2017-08-27 02:36:26 UTC
Did you try running it via the installed launchers at all? I don't think running it manually will set the classpath correctly leading to what you found.
Comment 2 Cddr 2017-08-27 03:49:55 UTC
No, this my fault. Thanks!
Comment 3 Cddr 2017-08-27 04:43:42 UTC
(In reply to Cddr from comment #2)
> No, this my fault. Thanks!

To be clear, I need start LanguageTool manually as jar file or set classpath for it, but now I see it's a wrong way on Gentoo.