birt 3.7 preview crashing in ubuntu 11.10

Posted by gjergj.sheldija on November 13, 2011

if you have problems with birt 3.7 preview crashing and recieve this sort of output on ubuntu 11.10 :

 No bp log location saved, using default.
 [000:000] Browser XEmbed support present: 1
 [000:000] Browser toolkit is Gtk2.
 [000:000] Using Gtk2 toolkit
 [000:021] Warning(optionsfile.cc:23): Load: Could not open file, err=2
 [000:021] No bp log location saved, using default.
 [000:021] Browser XEmbed support present: 1
 [000:021] Browser toolkit is Gtk2.
 [000:021] Using Gtk2 toolkit
 (Eclipse:13610): GnomeShellBrowserPlugin-DEBUG: plugin loaded
 ** (Eclipse:13610): DEBUG: NP_Initialize
 ** (Eclipse:13610): DEBUG: NP<em>Initialize succeeded
 ** (Eclipse:13610): DEBUG: NP</em>Initialize
 ** (Eclipse:13610): DEBUG: NP_Initialize succeeded
 ** (Eclipse:13610): DEBUG: NP<em>Initialize
 ** (Eclipse:13610): DEBUG: NP</em>Initialize succeeded
 ** (Eclipse:13610): DEBUG: NP_Initialize
 ** (Eclipse:13610): DEBUG: NP_Initialize succeeded

there is a two step solution to fix that, first you have to install xulrunner which not available on ubuntu repos anymore. so you have to download here xulrunner and install the xulrunner deb.
second step is to change the birt menu entry and add the the following line :

./eclipse -vmargs -Dorg.eclipse.swt.browser.DefaultType=mozilla

and that should fix birt preview