Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#74057 - [languagetool] Unable to execute `org.languagetool.tools.DictionaryExporter`

Attached to Project: Community Packages
Opened by huyizheng (huyizheng) - Tuesday, 08 March 2022, 06:38 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 27 April 2023, 18:27 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Antonio Rojas (arojas)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

This package place all `.jar` file into the same directory, which makes `languagetool.jar` unable to execute some classes, e.g., `org.languagetool.tools.DictionaryExporter`.

Place those `.jar` as upstream (all in `libs` subdir except 3 of them) can fix this problem.


Additional info:
* package version(s)
5.6-1
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:

Run `java -cp /usr/share/java/languagetool/languagetool.jar org.languagetool.tools.DictionaryExporter` result:
```
Error: Could not find or load main class org.languagetool.tools.DictionaryExporter
Caused by: java.lang.ClassNotFoundException: org.languagetool.tools.DictionaryExporter
```
Run following:
```
su
cd /usr/share/java/languagetool
mkdir libs
mv ./*.jar ./libs/
mv libs/languagetool.jar ./
mv libs/languagetool-commandline.jar ./
mv libs/languagetool-server.jar ./
```
Then run `java -cp /usr/share/java/languagetool/languagetool.jar org.languagetool.tools.DictionaryExporter` result:
```
usage: org.languagetool.tools.DictionaryExporter
-i <arg> binary Morfologik dictionary file (.dict)
-info <arg> *.info properties file, see
https://dev.languagetool.org/developing-a-tagger-dictionary
-o <arg> output file
```
This task depends upon

Closed by  Antonio Rojas (arojas)
Thursday, 27 April 2023, 18:27 GMT
Reason for closing:  Fixed
Additional comments about closing:  languagetool 6.1-2

Loading...