Like many people I had the dreaded Xlib.lock java error and after many hair pulling hours searching the net found a solution.
Note: I had to add the --nodeps tag to get this to work
So i installed the fc7 libX11-1.0.3-8.fc7.i386.rpm and libX11-devel-1.0.3-8.fc7.i386.rpm with the following command :
rpm -ihv --force libX11-1.0.3-8.fc7.i386.rpm libX11-devel-1.0.3-8.fc7.i386.rpm
(you can find them by fc7 search in
http://rpm.pbone.net/index.php3/stat/2/simple/2)
I didn't do the following but the guide I found did so you may desire to:
and then removed the problematic version (libX11-1.1.3-4.fc8.i386.rpm and libX11-devel-1.1.3-4.fc8.i386.rpm) via SMART package manager.