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, ciao pier
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
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
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:~>
…where from=opensuse standard repositories, how=by yast :)…me also have another syste with 13.1 and a perfectly working libreoffice…
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 -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…
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…
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.
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…
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.