Wednesday, 20 November 2013

Eclispe RCP : symbol lookup error: /usr/lib64/xulrunner-1.9.2.17/libxul.so: undefined symbol: gdk_screen_get_resolution

Error : 
symbol lookup error: /usr/lib64/xulrunner-1.9.2.17/libxul.so: undefined symbol: gdk_screen_get_resolution

Solution :

1. Locate the XULRunner library. 
# cd /usr/lib
# ls -ld xul*
lrwxrwxrwx 1 root root 21 2012-02-20 17:32 xulrunner-1.8.0 -> xulrunner-1.8.old
lrwxrwxrwx 1 root root 21 20012-02-20 10:44 xulrunner-1.8.0.1 -> xulrunner-1.8.new
lrwxrwxrwx 1 root root 18 2012-08-07 10:43 xulrunner-1.9 -> xulrunner-1.9.0.11
drwxr-xr-x 12 root root 4096 2012-08-07 10:45 xulrunner-1.9.0.11



2. If you are not able to locate the XULRunner in your system then, download from following location and install it :

http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases

3. Modify eclipse.ini file with the xulrunner path found. append the following line at the end of the file.

-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/local/xulrunner-1.9.0.11/

4. Restart your RCP.