Bug#532549: javaldx: Could not find a Java Runtime Environment!
severity 532549 minor tag 532549 + moreinfo thanks Hi, jida...@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/ `. `' r...@debian.org | GnuPG-Key ID: 248AEB73 `- Fingerprint: 41FA F208 28D4 7CA5 19BB 7AD9 F859 90B0 248A EB73 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#532549: javaldx: Could not find a Java Runtime Environment!
Hi, Rene Engelhard wrote: -java-common is only needed when you really need Java functionality. So *of course* it is no dependency on impress. And of course -java-common does not depend on any JVM itself either. The Java policy says that libraries (and -java-common is nothing else, it just consists of loads of .jars and a .class file, the .class file is important for JRE detection) shouldn't depend on JVMs itself but applications using it should. (That's why -writer recommends it and -base and the extensions written in Java depend on some JVM) Ok, maybe we should say Please ensure that the package openoffice.org-java-common and some JRE is installed but I consider this minor. It's obvious that you need a JRE when you want/need Java stuff, besides that it's mentioned in the package relations :) The program seems to work fine (as in fine molasses), after the dependency is installed. It works also without that installed. Of course just without any Java support. Grüße/Regards, René -- .''`. René Engelhard -- Debian GNU/Linux Developer : :' : http://www.debian.org | http://people.debian.org/~rene/ `. `' r...@debian.org | GnuPG-Key ID: 248AEB73 `- Fingerprint: 41FA F208 28D4 7CA5 19BB 7AD9 F859 90B0 248A EB73 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#532549: javaldx: Could not find a Java Runtime Environment!
if test dpkg -l openoffice.org-java-common ... then say RE + fprintf(stderr,Please ensure that the package openoffice.org-java-common is installed.\n); if test -f ~/.openoffice.org/3/user/config/javasettings_Linux_*.xml then say RE + fprintf(stderr,If it is already installed then try removing ~/.openoffice.org/3/user/config/javasettings_Linux_*.xml\n); I don't think I had any other $ dlocate -l jre|grep -c 0 #installed, as I never learned java anyway. Anyway, all I know is I ended up using, enjoying, and submitting http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=532553 RFP: ppsei -- extract images from Microsoft PowerPoint Documents (PPS/PPT) as those few KBs of C code allowed me to do the same as the 1/10 of a Gigabyte ooimpress install, over my tiny modem and weak CPU. OK, so the reason the seeming dependency is not installed is because most users wouldn't need it... unfortunately FileWeb Preview, the one function I clicked, needed it. My bad luck. OK, thanks anyway. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#532549: javaldx: Could not find a Java Runtime Environment!
Package: openoffice.org-impress Version: 1:3.1.0-4 Here's my situation. Somebody sends me a .pps file, so I # aptitude install openoffice.org-impress $ 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 # 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 Conclusions: 1) the openoffice.org-impress is missing the proper dependencies. I install 72 MB and the much smaller openoffice.org-java-common was forgotten in Depends:. 2)No tests are done before printing such messages. 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. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org