[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#532549: javaldx: Could not find a Java Runtime Environment!



severity 532549 minor
tag 532549 + moreinfo
thanks

Hi,

jidanni@jidanni.org wrote:
> Here's my situation.
> Somebody sends me a .pps file, so I
> # aptitude install openoffice.org-impress

That of course neither installs -java-common nor a JDK because
it's not strictly needed.

> $ ooimpress
> javaldx: Could not find a Java Runtime Environment!
> Please ensure that the package openoffice.org-java-common is installed.
> If it is already installed then try removing ~/.openoffice.org/3/user/config/javasettings_Linux_*.xml

But OOo starts? Note that a JRE is not mandatory.

> # aptitude install openoffice.org-java-common
> $ ooimpress
> javaldx: Could not find a Java Runtime Environment!
> Please ensure that the package openoffice.org-java-common is installed.
> If it is already installed then try removing ~/.openoffice.org/3/user/config/javasettings_Linux_*.xml
> $ rm -r ~/.openoffice.org/
> javaldx: Could not find a Java Runtime Environment!
> Please ensure that the package openoffice.org-java-common is installed.
> If it is already installed then try removing ~/.openoffice.org/3/user/config/javasettings_Linux_*.xml
> $ rm ~/.openoffice.org/3/user/config/javasettings_Linux_*.xml
> $ ooimpress
> javaldx: Could not find a Java Runtime Environment! 
> Please ensure that the package openoffice.org-java-common is installed.
> If it is already installed then try removing ~/.openoffice.org/3/user/config/javasettings_Linux_*.xml

Do you have some JRE installed?

> Conclusions:
> 1) the openoffice.org-impress is missing the proper dependencies.

No.

> I install 72 MB and the much smaller openoffice.org-java-common was
> forgotten in Depends:.

-java-common is only needed when you really need Java functionality.
So *of course* it is no dependency on impress.

> 2)No tests are done before printing such messages.

Wrong.

         if (errcode == JFW_E_NO_JAVA_FOUND)
         {
             fprintf(stderr,"javaldx: Could not find a Java Runtime Environment! \n");
+            fprintf(stderr,"Please ensure that the package openoffice.org-java-common is installed.\n");
+            fprintf(stderr,"If it is already installed then try removing ~/.openoffice.org/3/user/config/javasettings_Linux_*.xml\n");
             return false;
         }

This is printed out when no Java is found. Which either might be
because openoffice.org-java-common is installed or
~/.openoffice.org/3/user/config/javasettings_Linux_*.xml has an obsolete
entry or really no Java is installed.

Note that we added the extra output ourselves, plain upstream just would
have printed "javaldx: Could not find a Java Runtime Environment! " without
any further info.

> The program seems to work fine (as in fine molasses), after the
> dependency is installed.
> So fix the dependency, and remove the warning, I say.

No, there's nothing to fix here AFAIS and the warning has its
sense (Base needs Java for the internal db, some wizards need Java,
some filters need Java,, some extensions do, ...)

This currently looks as "minor" to me. I'll tag it as "moreinfo", too
because I'd be interested if you had a JRE installed at all. I also
will just reserve the right to just close it because it's not a bug at
all in my eyes, iti correctly warns you that you don't have a working
Java configuration...

Grüße/Regards,

René
-- 
 .''`.  René Engelhard -- Debian GNU/Linux Developer
 : :' : http://www.debian.org | http://people.debian.org/~rene/
 `. `'  rene@debian.org | GnuPG-Key ID: 248AEB73
   `-   Fingerprint: 41FA F208 28D4 7CA5 19BB  7AD9 F859 90B0 248A EB73




Reply to: