Have you done the nutso and “upgraded” or tried out the development release of Ubuntu’s Hardy Heron? I did. I decided to use the command “update-manager -d” to run Gutsy Gibbon’s Update Manager with the flag to update the distribution to the next release. Currently Hardy is at 8.04 alpha 3. For those Debianites, this would be like changing your /etc/apt/sources.list file to point to the “testing” sources and doing the “apt-get dist-upgrade” command after “apt-get update”.
The upgrade went reasonably well with only one temporary show stopper. Java GUI apps stopped working when I upgraded. It seems that there’s a bit of a bug in Sun’s Java 6 that doesn’t agree with the new x.org server (from what I gather). They will fix it in Java 7, which will be a while yet. Thankfully, I found this ubuntu forum post, that helped me solve the problem. I used the sed line:
$ sudo sed -i ’s/XINERAMA/FAKEEXTN/g’ /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/xawt/libmawt.so
I hope that this will help you too!
ADDENDUM:
- One thing that you will find is that after every Java update and many X.org updates, your java will stop working again. Adding the “replacement” string “FAKEEXTN” again should fix the behavior.
- As noted by jazz in the comments (Please read the comments on this post), there are different paths for x86 and x64.
- You may or may not require the additional hacks to the /usr/bin/<java application> script to make it work. I didn’t for Azureus or Frostwire.
- Any time someone says to “paste” or write a command with the SUDO command or to do “as root“, think before you copy
- Read the MAN PAGE for SED (and AWK) before using it. Its a powerful command.
Addendum 2: (this is a short one)
Don’t expect anything big with Firefox for this one, at the moment, as Firefox 3 is the designated upgrade from the 2 branch (whether I approve or not - I’m testing and submitting bug reports) ad there seems to be a problem with java and FF3. If you know how to get it working, let me know. There are a few little things about FF3 that are great, but, mostly, I hate FF3. It sucks the biggest moose appendage at the moment. I yearn for the simple days of Phoenix 0.1…
Thanks, exactly what I was looking for although I needed to change syntax and paths a little
sudo sed -i “s/XINERAMA/FAKEEXTN/g” /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so
worked for me
I’m so glad that I’m not the only one that this hack has helped. I like to make sure that the good ideas flow all around and it did take me a bit to find that forum post. Hopefully, this will give the workaround a bit more exposure. I’m not too keen on trying to rely on 1.7 iced tea yet, as its still got butt ugly fonts.
I’m not so sure that its a java bug as much as an X bug, or perhaps both. I’m getting a few crashes here and there that seem to be related to the new X server.
Worked for Frostwire but not runescape with 64 bit konqueror.No problems in gutsy 64 bit but the kids are not happy any ideas thanks
I’m back to the drawing board again myself, it seems. I got applets to load in Konqueror with Iced Tea (Java 1.7), but there doesn’t seem to be a browser plug in for Forefox that works. Opera crashes on applets now. Azureus does work, though. I’m still researching.
have no fear solved type in terminal for 64 bit
sudo sed -i ’s/XINERAMA/FAKEEXTN/g’ /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/amd64/xawt/libmawt.so
Also uninstall iced tea it just aint ready.and make sure you install sun java6 jre and sun java6 bin before you run the command.For frostwire do this in terminal :
sudo gedit /usr/bin/frostwire
and add this line:
export LIBXCB_ALLOW_SLOPPY_LOCK=true:
to make it look like this:
#!/bin/bash
export AWT_TOOLKIT=MToolkit
export HOSTNAME=localhost
export LIBXCB_ALLOW_SLOPPY_LOCK=true
/usr/lib/frostwire/runFrostwire.sh
Brilliant! I’ll attack tonight! (the fonts in Iced Tea are fugly anyhow). I’ll try for x86. Perhaps the sloppy lock hack will work for Opera as well. I really like using it now and then, as it does certain things better than any other browser.
Now, to play with the new
Crashiluser Nautilus…Well it worked for me in konqueror maybe i to will give opera a go.
no go in opera tried 32 and 64 java maybe u will have better luck
I followed your suggestion to ditch Iced Tea and go back with Sun’s java. For some reason, it worked. Of course, I’ve also experienced two updates to x.org since as well, so perhaps some things have been fixed.
Results so far:
Java applets load and function in all browsers I use that are capable - Firefox 2, Firefox 3 beta, Opera 9.5 beta, and Konqueror 3.5.?. Azureus opens and does not crash immediately (it will later, but that’s an Azureus bug). I am going to install Frostwire and see how it fares, as I’m having trouble with giFT at the moment anyhow.
BTW,
my path to java is /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386 for Opera and /usr/lib/jvm/java-6-sun-1.6.0.04/bin/java for Konqueror
Frostwire 4.13.4 loads as well. I did not hack the execute script, though. So, on x86, I believe that some things have been “fixed”, likely with X.org 7.3 (my own hunch).
It looks like problems were worse with 64 bit and i only had java problems with runescape.It does not work with firefox and never has because you cant specify java path unlike konq and opera.That said opera would not load runescape.BTW i dont play runescape its the kids (honest)
Of course!
;)
Now, if they can iron out the bugs that cause Firefox (any), GDM, Gnome-panel, Compiz, and Nautilus from crashing, we might see a release by April. LOL