FS#31784 - [languagetool] fail to run thought 'java -jar' commandline
Attached to Project:
Community Packages
Opened by Martin Ortbauer (mortbauer) - Wednesday, 03 October 2012, 09:18 GMT
Last edited by Andrzej Giniewicz (Giniu) - Wednesday, 03 October 2012, 21:24 GMT
Opened by Martin Ortbauer (mortbauer) - Wednesday, 03 October 2012, 09:18 GMT
Last edited by Andrzej Giniewicz (Giniu) - Wednesday, 03 October 2012, 21:24 GMT
|
Details
Description:
the command: [code] java -jar /usr/share/java/languagetool/LanguageTool.jar filename [/code] fails with the message: [code] Exception in thread "main" java.lang.ExceptionInInitializerError at org.languagetool.language.English.getSentenceTokenizer(English.java:69) at org.languagetool.Main.main(Main.java:468) Caused by: java.lang.RuntimeException: Path /segment.srx not found in class path at /resource/segment.srx at org.languagetool.databroker.DefaultResourceDataBroker.assertNotNull(DefaultResourceDataBroker.java:233) at org.languagetool.databroker.DefaultResourceDataBroker.getFromResourceDirAsStream(DefaultResourceDataBroker.java:141) at org.languagetool.tokenizers.SRXSentenceTokenizer.createSrxDocument(SRXSentenceTokenizer.java:56) at org.languagetool.tokenizers.SRXSentenceTokenizer.<clinit>(SRXSentenceTokenizer.java:47) ... 2 more [/code] Though the normal commandline usage works, but the specified usage should work as well and is needed for example for the vim integration of the languagetool. The used package version is: languagetool 1.8-7 |
This task depends upon
Closed by Andrzej Giniewicz (Giniu)
Wednesday, 03 October 2012, 21:24 GMT
Reason for closing: Won't fix
Additional comments about closing: the package follows official guidelines and works from executable script, mentioned syntax (running it manually by calling .jar file) works when correct classpath is set.
Wednesday, 03 October 2012, 21:24 GMT
Reason for closing: Won't fix
Additional comments about closing: the package follows official guidelines and works from executable script, mentioned syntax (running it manually by calling .jar file) works when correct classpath is set.
(btw, yes - I know they are out of date, I will update languagetool and vim plugin in next few days)