Java on Ubuntu hardy (development branch) fails to launch

I have upgraded Ubuntu 7.10…

Login

Blog History

I have upgraded Ubuntu 7.10 to 8.04 in the dev branch some things aren't working. I installed the latest openoffice from OpenOffice.org and it wouldn't install using the provided java installer and when I installed it using the deb download it couldn't find Java.

Further investigation showed that java wouldn't run at all (see the error below).

I googled and found a related problem and Java Fix for Ubuntu 8.04 Java not running problem

Update: The above fix will not work for the Openoffice setup program which includes it's own jre which is unpacked and the same error occurs. The work around for this is create a file named runsetup or similar with the following in it.

export LIBXCB_ALLOW_SLOPPY_LOCK=true
./setup

and then
sudo sh ./runsetup

and then the installer will work.

myname@mymachine:/usr/lib/jvm/java-6-sun-1.6.0.03/bin$ ./ControlPanel
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb54fc767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb54fc8b1]
#2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xb554929d]
#3 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/xawt/libmawt.so [0xb563764e]
#4 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/xawt/libmawt.so [0xb5615f97]
#5 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/xawt/libmawt.so [0xb5616248]
#6 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/xawt/libmawt.so \
(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f) [0xb561654f]
#7 [0xb5cf968e]
#8 [0xb5cf1edd]
#9 [0xb5cf1edd]
#10 [0xb5cef243]
#11 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/client/libjvm.so [0x620bc6d]
#12 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/client/libjvm.so [0x630a828]
#13 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/client/libjvm.so [0x620bb00]
#14 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x34b) [0x62619bb]
#15 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/libjava.so \
(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb7d0a96d]
#16 [0xb5cf968e]
#17 [0xb5cf1d77]
#18 [0xb5cef243]
#19 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/client/libjvm.so [0x620bc6d]
java: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
./ControlPanel: line 135: 18829 Aborted \
(core dumped) ${java_home}/java -Djavaplugin.user.profile=${USER_JPI_PROFILE} \
-Xbootclasspath/a:${java_home}/../lib/deploy.jar ${_JAVA_VM_OPTIONS} \
com.sun.deploy.panel.ControlPanel

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.