| Summary: | app-office/openoffice-2.4 won't use any java | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Billy DeVincentis <billydv1> |
| Component: | Current packages | Assignee: | Gentoo Office Team <office> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | normal | CC: | aklhfex, ghepeu, jfindlay |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | strace output of javaldx | ||
|
Description
Billy DeVincentis
2008-03-28 11:29:12 UTC
Similar problem here. The difference is that under Tools->Options->Java there's no JRE, no matter which JREs are installed on the system (tested with sun-jdk 1.5.0.15/-r1, sun-jdk 1.6.0.05/-r1, sun-jre-bin 1.5.0.15, sun-jre-bin 1.6.0.5). On console there's this error message: javaldx: Could not find a Java Runtime Environment! emerge --info Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r3 i686) ================================================================= System uname: 2.6.24-gentoo-r3 i686 AMD Athlon(tm) 64 Processor 3500+ Timestamp of tree: Fri, 28 Mar 2008 11:00:01 +0000 app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.1.5 dev-lang/python: 2.5.1-r5 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe -msse3 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=athlon64 -O2 -pipe -msse3 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/" LANG="it_IT.utf8" LDFLAGS="-Wl,-O1 -Wl,--sort-common" LINGUAS="it en" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/dati/wdpata36gb/portage-tmp/" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/x11-overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X aac acl acpi alsa bash-completion berkdb boost bzip2 cairo cdio cdr cli cracklib crypt cups curl dbus dri dts dvd dvdr dvdread eds emboss encode evo exif fam ffmpeg firefox flac fontconfig fortran gcj gdbm gif gimp glitz gnome gphoto2 gpm gstreamer gtk hal iconv imagemagick isdnlog java jce jpeg kdeenablefinal keyring lcms libnotify mad midi mmx mmxext mng mono mp3 mpeg mudflap musepack musicbrainz mysql nautilus ncurses nls nntp nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png pppd python qt3support quicktime readline real reflection samba scanner sdl session spell spl sqlite sqlite3 sse sse2 ssl startup-notification svg svga tcpd tetex theora threads tiff truetype unicode usb vorbis win32codecs wmf x264 x86 xattr xcb xcomposite xml xorg xv xvid zlib" ALSA_CARDS="emu10k1 intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Please, drop the double spacing, it's extremely annoying. Already asked you a couple of times. Also, post emerge -pv openoffice output. Try to remove your user install dir at ~/.ooo-2.0, this should fix the problem (In reply to comment #3) > Try to remove your user install dir at ~/.ooo-2.0, this should fix the problem > First thing I did, and it doesn't fix my problem. (In reply to comment #4) > (In reply to comment #3) > > Try to remove your user install dir at ~/.ooo-2.0, this should fix the problem > > > > First thing I did, and it doesn't fix my problem. > hmm strange, deleting the user dir worked fine here. Created attachment 147573 [details]
strace output of javaldx
Recompiled the new version (patchset 2.4.0.5) without any luck.
Attached is the compressed output of "strace -o javaldx.log /usr/lib/openoffice/program/javaldx" (uncompressed ~21M), apparently it looks for a JRE everywhere, including into the directories where the JRE is, without finding it.
Again, my apologies for the double spacing, I do alot of typing and it just comes naturally. I want to say that deleting my home user profile did the trick, but also I wanted to mention that I have Iced Tea installed and thats the java it chose, it may or may not work with just the standard 1.5 and 1.6 sun javas. I found an easier way, instead of deleting your entire user file, just go in and delete this /home/billydv/.ooo-2.0/user/config/javasettings_Linux_x86.xml and after restarting Openoffice, java came up fine. (In reply to comment #8) > I found an easier way, instead of deleting your entire user file, just go in > and delete this /home/billydv/.ooo-2.0/user/config/javasettings_Linux_x86.xml > and after restarting Openoffice, java came up fine. > Good catch. btw: works fine here with both sun-jdk-1.5 and sun-jdk-1.6 For me this has been (not new with the latest OpenOffice or jdk) an example of: http://bugs.freedesktop.org/show_bug.cgi?id=11390 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373 doing: sed -i 's/XINERAMA/FAKEEXTN/g' /opt/sun-jdk-1.6.0.05/jre/lib/amd64/xawt/libmawt.so fixes it for me, not sure what other damage it does though. (In reply to comment #10) > For me this has been (not new with the latest OpenOffice or jdk) an example of: > http://bugs.freedesktop.org/show_bug.cgi?id=11390 > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373 > > doing: > > sed -i 's/XINERAMA/FAKEEXTN/g' > /opt/sun-jdk-1.6.0.05/jre/lib/amd64/xawt/libmawt.so > > fixes it for me, not sure what other damage it does though. > Worked for me, so libxcb new locking mechanism seems to be the cause of the problem. I could get javaldx to find the JRE by running it with LIBXCB_ALLOW_SLOPPY_LOCK=1 but then openoffice could not find it at runtime. The sed (against /opt/sun-jdk-1.6.0.05/jre/lib/i386/xawt/libmawt.so, not 64 bit here) fixed also the detection at runtime. I hope it has no consequences, or at least that they're just xinerama-related, because I don't use that extension. (In reply to comment #10) Worked also for me (not 64 bit). Removing /home/toor/.ooo-2.0/user/config/javasettings_Linux_x86.xml added to the list of available jres alsa 1.4.2 by Free Software Foundation. > For me this has been (not new with the latest OpenOffice or jdk) an example of: > http://bugs.freedesktop.org/show_bug.cgi?id=11390 > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373 > > doing: > > sed -i 's/XINERAMA/FAKEEXTN/g' > /opt/sun-jdk-1.6.0.05/jre/lib/amd64/xawt/libmawt.so > > fixes it for me, not sure what other damage it does though. > Fixed for me with dev-java/sun-jdk-1.6.0.06 See also #215150. (In reply to comment #9) > (In reply to comment #8) > > I found an easier way, instead of deleting your entire user file, just go in > > and delete this /home/billydv/.ooo-2.0/user/config/javasettings_Linux_x86.xml > > and after restarting Openoffice, java came up fine. > > > > Good catch. btw: works fine here with both sun-jdk-1.5 and sun-jdk-1.6 I had this same issue with 2.3.1 ("javaldx failed!" in shell) and the same fix worked there, too. The problem appears that OOo doesn't realize when a JVM is updated: it still pointed at 1.6.0.04 in my xml file which was no longer there; I'm on 1.6.0.06 at this point. Picking a new JVM from OOo's GUI does not fix the issue, however, and that is a problem (silent failure): it gives no error but doesn't update the xml file, either. I tried removing both just ~/.ooo-2.0/user/config/javasettings_Linux_x86.xm and the whole ~/.ooo-2.o dir with no success. I also performed the recommended sed in comment #10 with no luck. I have app-office/openoffice-bin-2.4.0 and dev-java/sun-jre-bin-1.6.0.05 and dev-java/sun-jdk-1.6.0.05 installed. Setting LIBXCB_ALLOW_SLOPPY_LOCK=1 as recommended in comment #11 while running either javaldx or oobase doesn't work. And, finally, no JRE's show up in the java config dialog and I can't get openoffice to recognize either JRE when I try to add one, no matter what directory within /opt/sun-jdk-1.6.0.05 or /opt/sun-jre-bin-1.6.0.05 I select. In the past couple of days I upgraded to dev-java/sun-jdk-1.6.0.06 dev-java/sun-jre-bin-1.6.0.06 and installed jre1.6.0_10 from java.sun.com. None of these changes at first didn't fix the openoffice problem, but thereafter I unmerged then remerged openoffice-bin-2.4.0 and now it recognizes all versions of java I have installed. I'm not certain what finally fixed it. Could you please rebuild openoffice 2.4.0? There have been some recent fixes in regards to java detection, so those might help No feedback for months, closing |