Unable to install LanguageTool 2.5 extension for LibreOffice 4.2 on Ubuntu 14.04
Solution 1
First of all, the most important:
sudo apt-get install
libreoffice-java-common
java-common
Go to LibreOffice
Options
menu, chooseAdvanced
and be sureUse Java runtime environment
is checked and a Java version is selected.Now install your extension either by double-clicking on it in File Manager or by importing it in LibreOffice
Extension Manager
dialog.
Solution 2
I had this error with 12.04, turned out java just wasn't enabled in LibreOffice. Might sound silly, but worth a check.
Go to Tools-Options-Advanced. I had the checkbox selected for "Use a java runtime environment", but right under that is "Java runtime environments(JRE) already installed:", and inside that list I hadn't selected anything.
Checked the Oracle 1.7, restarted LibreOffice, installed LanguageTool, all was well.
Solution 3
Using Kubuntu 18.10 and Java 11, the following solution worked for me:
Install the jaxb package:
sudo apt install libjaxb-java
Open LibreOffice, and go to Tools -> Options -> Advanced
You should see the Oracle Corporation 11 JRE has been selected.
Select the Oracle Corporation 11 JRE, and click on Class Path.
Add /usr/share/java/jaxb-impl.jar
Restart LibreOffice, and the error should go away. I don't know what else is loaded, and haven't come across any other side effects yes.
talha06
Updated on September 18, 2022Comments
-
talha06 over 1 year
I am not able to install
LanguageTool
extension for LibreOffice. Getting exception when I try to install it.p.s. Somebody says that the solution is installing
openoffice.org-java-common
package but Ubuntu 14.04 does not have this package in its repository.System details:
OS: Ubuntu 14.04 LTS LibreOffice: 4.2 (4.2.3.3) LanguageTool: 2.5 Java: Oracle JDK 1.8.0_05
Exception message:
-
JJD about 2 yearsFor me it help to only change the Java runtime environment (JRE) being configured in LibreOffice from 11.0.x to 1.8.x (both OpenJDK). Thanks everyone nevertheless.
-
-
talha06 almost 10 yearscan't I use with Oracle Java? because I need to use this vendor due to my other works.
-
Mitch almost 10 yearsI don't see why not.
-
talha06 almost 10 yearsas I declared in my first post, I have already Oracle Java 8.
-
Mitch almost 10 yearsSee addition in my answer.
-
talha06 almost 10 yearsit is already detected and checked for me.
-
talha06 almost 10 yearsthanks a lot; now it works for me. The critical package is
libreoffice-java-common
as you highlighted. -
Ivan Ogai over 5 yearsI think worth adding: at least with Ubuntu 16.04 and LanguageTool 4.2, you need Java 8, installable e.g. with apt install openjdk-8-jre-headless, and select Java 8 in LibreOffice. Java 7 won't work.