Finally, I’ve found some good way around the issue between java and compiz, that kept me from using mercury. I’m able to use both now, with the tray working and all is working fine. If there’s anyone out there also trying to solve this:

Start by downloading this patch for the jre engine, and then move it to the path of the folder and uncompress it

cd /path/of/the/patch/
tar -xf patch.tar
cd patch

After that, we need to find the java file that is going to be patched. Usually in an Ubuntu system, this is /usr/lib/jvm/java-6-sun/jre/lib and the target file is rt.jar. Make a copy of it and then copy it into the current directory (…/path/ )

sudo cp /usr/lib/jvm/java-6-sun/jre/lib/rt.jar /usr/lib/jvm/java-6-sun/jre/lib/rt.jar.old
sudo cp /usr/lib/jvm/java-6-sun/jre/lib/rt.jar rt.zip

Now patch the file and overwrite the old one

zip -f rt.zip sun/awt/X11/*
sudo cp rt.zip /usr/lib/jvm/java-6-sun/jre/lib/rt.jar

After this, I’ve just started mercury, and all was up and running.

I must thank FIREcracker for the good tutorial, all credits to him.

Tags: , , , , ,