libreoffice don't find java runtime environment jre

on my sony vaio just upgraded to opensuse 13,1 with kde 4.11.5 kernel 3.11.10-7-desktop and libreoffice 4.1.4.2 from opensuse libreoffice stable repo.
When I launch libreoffice it gives me this error message:

The libreoffice configuration has been changed, under Tools-Options-libreoffice-advanced. select the java runtime environment you want to have used by libreoffice

but when I go under Tools-Options-libreoffice-advanced,
1)“use a java runtime environment” is checked

under "java runtime environment (JRE) already installed:
nothing is present and nothing appear, I tried to add going to /usr/lib64/jvm/ and in any folder from there I cannot find anything that libreoffice accepted as useful.

how can I have a working jre and get rid of error message???
manythanks, :slight_smile: ciao :slight_smile: pier

On mine /usr/lib64/jvm/java-1.7.0-openjdk-1.7.0/jre is the path accepted by LO.

on mine if I set /usr/lib64/jvm/java-1.7.0-openjdk-1.7.0/jre libreoffice says:
the folder you selected does not contain a java runtime environment please select a different folder

what does /usr/java/latest point to ?

In my system there isn’t /usr/java/latest
but I have these empty folders:
/usr/lib64/java
/usr/lib64/java-1.5.0
/usr/lib64/java-1.6.0
/usr/lib64/java-1.7.0
/usr/lib64/java-1.8.0
/usr/lib64/java-ext

and this with one file
/usr/lib64/svn-javahl/svn-javahl.jar

manythanks, :slight_smile: ciao :slight_smile: pier:)

Well, I guess you should mention where from and how you installed java.
But I have the same (empty) folders as you, and /usr/lib64/svn-javahl/svn-javahl.jar.

The standard java included in openSUSE installs itself to /usr/lib64/jvm/java-1.7.0-openjdk-1.7.0/jre/ (as Knurpht already wrote) and that’s exactly the path libreoffice shows to me (everything’s working fine here).

Maybe post the output of:

ls -l /usr/lib64/jvm/java-1.7.0-openjdk-1.7.0/jre/

or even:

ls -l /usr/lib64/jvm/

(please replace /usr/lib64/ with /usr/lib/ if you have a 32bit system)

And then maybe the output of this might also help:

rpm -qa | grep -E "(libreoffice|java)"

@vazhavandan: I don’t have /usr/java/latest here either (not even /usr/java, that by itself sounds wrong for me). The standard openSUSE packages don’t create that, and it should not be needed either.

On 2014-02-19 22:56, wolfi323 wrote:
> @vazhavandan: I don’t have /usr/java/latest here either (not even
> /usr/java, that by itself sounds wrong for me). The standard openSUSE
> packages don’t create that, and it should not be needed either.

I do:


cer@minas-tirith:~> l /usr/java/
total 20
drwxr-xr-x  5 root root  4096 Feb  2 20:51 ./
drwxr-xr-x 13 root root  4096 Dec 19 04:26 ../
lrwxrwxrwx  1 root users   16 Jan  5 23:42 default -> /usr/java/latest/
drwxr-xr-x  3 root root  4096 Mar 13  2013 jre1.7.0_15/
drwxr-xr-x  3 root root  4096 Jul 22  2013 jre1.7.0_17/
drwxr-xr-x  6 root root  4096 Feb  2 20:51 jre1.7.0_51/
lrwxrwxrwx  1 root root    21 Feb  2 20:51 latest -> /usr/java/jre1.7.0_51/
cer@minas-tirith:~>

But I have Oracle jre.


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

…where from=opensuse standard repositories, how=by yast :)…me also have another syste with 13.1 and a perfectly working libreoffice…:slight_smile:

here is the outputs:

eros@linux-eros1:~> ls -l /usr/lib64/jvm/java-1.7.0-openjdk-1.7.0/jre/
totale 8
drwxr-xr-x  2 root root 4096 17 feb 14.10 bin
drwxr-xr-x 11 root root 4096 17 feb 14.10 lib
eros@linux-eros1:~> 

eros@linux-eros1:~> ls -l /usr/lib64/jvm/
totale 4
lrwxrwxrwx 1 root root   24 17 feb 12.58 java-1.7.0-openjdk -> java-1.7.0-openjdk-1.7.0
drwxr-xr-x 3 root root 4096  1 nov 13.51 java-1.7.0-openjdk-1.7.0
lrwxrwxrwx 1 root root   21 18 dic  2012 jre -> /etc/alternatives/jre
lrwxrwxrwx 1 root root   27 18 dic  2012 jre-1.7.0 -> /etc/alternatives/jre_1.7.0
lrwxrwxrwx 1 root root   28 17 feb 12.58 jre-1.7.0-openjdk -> java-1.7.0-openjdk-1.7.0/jre
lrwxrwxrwx 1 root root   29 18 dic  2012 jre-openjdk -> /etc/alternatives/jre_openjdk
eros@linux-eros1:~> 

eros@linux-eros1:~> rpm -qa | grep -E "(libreoffice|java)"
libreoffice-impress-4.1.4.2-13.1.x86_64
libreoffice-templates-labels-letter-1.0.1-9.1.2.noarch
libreoffice-branding-openSUSE-4.0-2.1.2.noarch
libreoffice-hyphen-20110203.1-8.1.2.noarch
libreoffice-gnome-4.1.4.2-13.1.x86_64
libreoffice-writer-extensions-4.1.4.2-13.1.x86_64
libreoffice-draw-4.1.4.2-13.1.x86_64
libreoffice-mailmerge-4.1.4.2-13.1.x86_64
javapackages-tools-2.0.1-4.1.2.x86_64
libreoffice-base-extensions-4.1.4.2-13.1.x86_64
libjavascriptcoregtk-1_0-0-2.2.2-4.3.x86_64
libreoffice-icon-theme-oxygen-4.1.4.2-13.1.noarch
libreoffice-help-en-US-4.1.4.2-13.1.noarch
libreoffice-4.1.4.2-13.1.x86_64
timezone-java-2013h-1.1.noarch
libreoffice-thesaurus-en-US-20060111.1-17.1.2.noarch
libreoffice-icon-theme-crystal-4.1.4.2-13.1.noarch
libreoffice-thesaurus-it-20081129.1-17.1.2.noarch
libreoffice-math-4.1.4.2-13.1.x86_64
java-1_7_0-openjdk-1.7.0.6-24.13.5.x86_64
libreoffice-converter-3.3-18.1.2.noarch
libreoffice-templates-labels-a4-1.0.1-9.1.2.noarch
java-1_7_0-openjdk-headless-1.7.0.6-24.13.5.x86_64
libjavascriptcoregtk-3_0-0-2.2.2-4.3.x86_64
libreoffice-writer-4.1.4.2-13.1.x86_64
libreoffice-calc-4.1.4.2-13.1.x86_64
libreoffice-help-it-4.1.4.2-13.1.noarch
libreoffice-icon-theme-tango-4.1.4.2-13.1.noarch
libreoffice-filters-optional-4.1.4.2-13.1.x86_64
libreoffice-l10n-it-4.1.4.2-13.2.noarch
libreoffice-kde4-4.1.4.2-13.1.x86_64
libreoffice-icon-theme-hicontrast-4.1.4.2-13.1.noarch
libreoffice-base-4.1.4.2-13.1.x86_64
libreoffice-base-drivers-mysql-4.1.4.2-13.1.x86_64
libreoffice-calc-extensions-4.1.4.2-13.1.x86_64
libreoffice-draw-extensions-4.1.4.2-13.1.x86_64
libreoffice-templates-presentation-layouts-3.3-9.1.4.noarch
libreoffice-templates-en-3.3-10.1.4.noarch
libreoffice-impress-extensions-4.1.4.2-13.1.x86_64
libreoffice-icon-theme-galaxy-4.1.4.2-13.1.noarch
libreoffice-pyuno-4.1.4.2-13.1.x86_64
eros@linux-eros1:~> 

OK, it seems to be there.
But is it really? What does this say:

ls -la /usr/lib64/jvm/java-1.7.0-openjdk-1.7.0/jre/bin

Can you run java in a terminal window?

java --version

Have you tried a new user already?
Or maybe just try to remove the libreoffice configuration as a test, by renaming the folder ~/.config/libreoffice:

mv ~/.config/libreoffice ~/.config/libreoffice.bak

(or do that in a file manager)

eros@linux-eros1:~> ls -la /usr/lib64/jvm/java-1.7.0-openjdk-1.7.0/jre/bin/
totale 8
drwxr-xr-x 2 root root 4096 17 feb 14.10 .
drwxr-xr-x 4 root root 4096  1 nov 13.51 ..
eros@linux-eros1:~> 

…it seems there is nothin inside… :slight_smile:

eros@linux-eros1:~> java --version
If 'java' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf java
eros@linux-eros1:~> 

it seems to be a ghost… :slight_smile:
I launched to yast but it is checked as installed, to reinstall I suppose to rightclick and use update uncoditionally…
now is:

eros@linux-eros1:~> ls -la /usr/lib64/jvm/java-1.7.0-openjdk-1.7.0/jre/bin/
totale 172
drwxr-xr-x 2 root root  4096 21 feb 20.46 .
drwxr-xr-x 4 root root  4096 22 gen 18.11 ..
-rwxrwxr-x 1 root root  6368 22 gen 18.13 java
-rwxrwxr-x 1 root root  6408 22 gen 18.13 keytool
-rwxrwxr-x 1 root root  6472 22 gen 18.13 orbd
-rwxrwxr-x 1 root root  6416 22 gen 18.13 pack200
-rwxrwxr-x 1 root root  6408 22 gen 18.13 policytool
-rwxrwxr-x 1 root root  6400 22 gen 18.13 rmid
-rwxrwxr-x 1 root root  6408 22 gen 18.13 rmiregistry
-rwxrwxr-x 1 root root  6408 22 gen 18.13 servertool
-rwxrwxr-x 1 root root  6480 22 gen 18.13 tnameserv
-rwxrwxr-x 1 root root 87432 22 gen 18.13 unpack200

and:

eros@linux-eros1:~> java --version
Unrecognized option: --version
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
eros@linux-eros1:~> 

I don’t know why the error in the command java --version but ok, reinstalled and now it works!!!, maaaanythanks. :slight_smile:

I don’t know why this, this system has been updated from 12.2 to 12.3 and to 13.1, java and libreoffice was already there and correctly upgraded, I suppose only because in yast they was black, no red, no blue… :slight_smile:

Sorry, it should have been:

java -version

But the point of this was just to check if java can be run. So no need to post the output of this anymore.

So the java packages were installed, but somehow the actual files got deleted. I can’t tell you why and how though.
By reinstalling the packages, the files got copied to their place again, and so it works now.