Unable to install LanguageTool 2.5 extension for LibreOffice 4.2 on Ubuntu 14.04

5,235

Solution 1

  1. First of all, the most important:

    sudo apt-get installlibreoffice-java-commonjava-common

  2. Go to LibreOffice Options menu, choose Advanced and be sure Use Java runtime environment is checked and a Java version is selected.

  3. 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:

  1. Install the jaxb package: sudo apt install libjaxb-java

  2. Open LibreOffice, and go to Tools -> Options -> Advanced

  3. You should see the Oracle Corporation 11 JRE has been selected.

  4. Select the Oracle Corporation 11 JRE, and click on Class Path.

  5. 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.

Share:
5,235
talha06
Author by

talha06

Updated on September 18, 2022

Comments

  • talha06
    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:

    Exception message

    • JJD
      JJD about 2 years
      For 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
    talha06 almost 10 years
    can't I use with Oracle Java? because I need to use this vendor due to my other works.
  • Mitch
    Mitch almost 10 years
    I don't see why not.
  • talha06
    talha06 almost 10 years
    as I declared in my first post, I have already Oracle Java 8.
  • Mitch
    Mitch almost 10 years
    See addition in my answer.
  • talha06
    talha06 almost 10 years
    it is already detected and checked for me.
  • talha06
    talha06 almost 10 years
    thanks a lot; now it works for me. The critical package is libreoffice-java-common as you highlighted.
  • Ivan Ogai
    Ivan Ogai over 5 years
    I 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.