ºìÁªLinuxÃÅ»§
Linux°ïÖú

ÐÞ¸´ubuntuÖÐjavaÖ´ÐеÄLocking assertion failure

·¢²¼Ê±¼ä:2008-09-27 10:23:00À´Ô´:ºìÁª×÷Õß:pkbfu
ÔÚubuntuÀïÓÃeclipseЩ³ÌÐò»¹ÊǺÜÊæ·þµÄ£¬²Ù×÷¸Ð¾õ±È½ÏÈáºÍ£¬ºÇºÇ¡£²»¹ý½ñÌìдÁ˸öת»»Í¼ÏñµÄС³ÌÐò£¬Ö´ÐÐʱÔÚ´´½¨DCºó¾Í»á±¨Locking assertion failure£¬ËäÈ»²»Ó°Ïì³ÌÐòÖ´Ðнá¹û£¬µ«ÊÇ×ܹ鿴×Ų»Ë¬£¬ÓÚÊÇËÑÁËһϣ¬¾ÓÈ»ÊÇsunµÄbug¡£»¥ÁªÍøÕæÊǺ㬺ÜÈÝÒ×¾ÍÕÒµ½ÁËÐÞ¸´Õâ¸öbugµÄ·½·¨£¬ÓÃrootÖ´ÐÐÈçÏÂshell¾Í¿ÉÒÔÁË¡£

ÒýÓÃ:
#!/bin/sh
# S. Correia
# 2007 11 21
# A simple script to patch the java library in order
# to solve the problem with "Assertion 'c->xlib.lock' failed."
# see bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373
LIB_TO_PATCH=libmawt.so
for f in `find $JAVA_HOME -name "$LIB_TO_PATCH"`
do
echo "Patching library $f"
#sudo sed -i 's/XINERAMA/FAKEEXTN/g' "$f"
sed -i 's/XINERAMA/FAKEEXTN/g' "$f"
done


×÷ÕߣºÐ¡Ã«
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ