Back to LanguageTool Homepage - Privacy - Imprint

Multiple Oracle Javas on ubuntu 12.04 32-bit

Similar problems were encountered on ubuntu 12.04 64-bit and solved by instructions to set the default java distribution


On a 32-bit ubuntu 12.04 machine, LibreOffice shows two versions of java 1.7.0_55 (Oracle Corporation).
Paths as shown in libreoffice->Tools->Options->Java follow :

  1. /usr/lib/jvm/java-7-oracle/jre
  2. /usr/lib/jvm/java-7-openjkd-i386/jr
    Regardless of the default choice, LanguageTools loads with Java errors and installs without proper function.
    I can show the ‘dump’ from update-alternatives as follows :

There are 3 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status

0 /usr/lib/jvm/java-6-openjdk-i386/jre/bin/java 1061 auto mode
1 /usr/lib/jvm/java-6-openjdk-i386/jre/bin/java 1061 manual mode
2 /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java 1051 manual mode

  • 3 /usr/lib/jvm/java-7-oracle/jre/bin/java 1052 manual mode

Might it be that one or more need to be removed?

  • tim -

/usr/lib/jvm/java-7-oracle/jre/bin/java sounds like the right one. What does “java -version” print on the command line? Did you make sure you restarted LibreOffice after changing the setting? (make sure there’s no LibreOffice process left before you start it again). Did you check the other items at

java -version returns “1.7.0_55”

yes, LibreOffice is restarted after every change.
but I have not run ps' to check for a full shut-down. I will have to confirm that. I may need to do somekill’ing

From the issues link, I get that I may need to look at specifically installing
libreoffice-java-common or package

Time (and access to this computer) does not permit me to do anything until
later today. I will report back as to the results.

Thanks again for your support, dnaber

  • tim -

From I took note of the part on ubuntu issues, which described
something similar to my problem.

I note that the blog referenced there is a dead link.

However I followed the following advice:
“install the libreoffice-java-common or package.”
using apt-get as in
sudo apt-get install libreoffice-java-common

And it appears with just brief inspection that I have the extension installed.

We are looking forward to learning how to use it and expect it to be of great value.

Thanks again, dnaber

  • tim -