Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: libreoffice don't find java runtime environment jre

  1. #1

    Default 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, :-) ciao :-) pier

  2. #2
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,038
    Blog Entries
    14

    Default Re: libreoffice don't find java runtime environment jre

    On mine /usr/lib64/jvm/java-1.7.0-openjdk-1.7.0/jre is the path accepted by LO.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  3. #3

    Default Re: libreoffice don't find java runtime environment jre

    Quote Originally Posted by Knurpht View Post
    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

  4. #4
    Join Date
    May 2010
    Location
    Space Colony Lagrange Point 22° à, 77° Ƅ, 56° ɤ, 99° ɜ
    Posts
    3,166

    Default Re: libreoffice don't find java runtime environment jre

    what does /usr/java/latest point to ?
    GNOME Version 3.20.2
    openSUSE Leap 42.3 64-bit

    www.vazhavandan.blogspot.com

  5. #5

    Default Re: libreoffice don't find java runtime environment jre

    Quote Originally Posted by vazhavandan View Post
    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, :-) ciao :-) pier

  6. #6

    Default Re: libreoffice don't find java runtime environment jre

    Quote Originally Posted by pier_andreit View Post
    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:
    Code:
    ls -l /usr/lib64/jvm/java-1.7.0-openjdk-1.7.0/jre/
    or even:
    Code:
    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:
    Code:
    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.

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: libreoffice don't find java runtime environment jre

    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:

    Code:
    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))

  8. #8

    Default Re: libreoffice don't find java runtime environment jre

    Quote Originally Posted by wolfi323 View Post
    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).
    ...where from=opensuse standard repositories, how=by yast ...me also have another syste with 13.1 and a perfectly working libreoffice...

    Quote Originally Posted by wolfi323 View Post
    Maybe post the output of:
    Code:
    ls -l /usr/lib64/jvm/java-1.7.0-openjdk-1.7.0/jre/
    or even:
    Code:
    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:
    Code:
    rpm -qa | grep -E "(libreoffice|java)"
    here is the outputs:
    Code:
    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:~>
    Code:
    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:~>
    Code:
    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:~>

  9. #9

    Default Re: libreoffice don't find java runtime environment jre

    Quote Originally Posted by pier_andreit View Post
    ...where from=opensuse standard repositories, how=by yast ...me also have another syste with 13.1 and a perfectly working libreoffice...
    OK, it seems to be there.
    But is it really? What does this say:
    Code:
    ls -la /usr/lib64/jvm/java-1.7.0-openjdk-1.7.0/jre/bin
    Can you run java in a terminal window?
    Code:
    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:
    Code:
    mv ~/.config/libreoffice ~/.config/libreoffice.bak
    (or do that in a file manager)

  10. #10

    Default Re: libreoffice don't find java runtime environment jre[SOLVED]

    Quote Originally Posted by wolfi323 View Post
    OK, it seems to be there.
    But is it really? What does this say:
    Code:
    ls -la /usr/lib64/jvm/java-1.7.0-openjdk-1.7.0/jre/bin
    Code:
    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... :-)
    Quote Originally Posted by wolfi323 View Post
    Can you run java in a terminal window?
    Code:
    java --version
    Code:
    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:
    Code:
    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:
    Code:
    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.... :-)

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •