Fix the eclipse based IBM products like RAD, RTC from crashing


While attempting to open the workspace in Rational Application Developer (RAD) causes closing immediately or does not start at all with following error: " JVM terminated. Exit code = 160. "

RAD  keeps crashing while creating a EAR project or during startup or opening an HTML file from a project. Below is the stack trace seen on the crash window:

Stack Trace:
JVM terminated. Exit code=160
/opt/IBM/SDP//jdk/jre/bin/javaw
-Dsdp.driver=RADO91-I20140509_1612
-Xquickstart
-Xms100m
-Xmx1024m
-Xmnx64m
-Xgcpolicy:gencon
-Xscmx96m
-Xshareclasses:name=IBMSDP_%u
-XX:MaxPermSize=512M
-Xcompressedrefs
-Dcom.ibm.ws.management.event.max_polling_interval=1000
-Dorg.eclipse.swt.internal.gtk.cairoGraphics=false
-jar /opt/IBM/SDP//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /opt/IBM/SDP/eclipse
-name Eclipse
--launcher.library /opt/IBM/SDP//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807/eclipse_1502.so
-startup /opt/IBM/SDP//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.overrideVmargs
-exitdata 8e8037
-install /opt/IBM/SDP
-product com.ibm.rational.rad.product.v91.ide
-vm /opt/IBM/SDP//jdk/jre/bin/javaw
-vmargs
-Dsdp.driver=RADO91-I20140509_1612
-Xquickstart
-Xms100m
-Xmx1024m
-Xmnx64m
-Xgcpolicy:gencon
-Xscmx96m
-Xshareclasses:name=IBMSDP_%u
-XX:MaxPermSize=512M
-Xcompressedrefs
-Dcom.ibm.ws.management.event.max_polling_interval=1000
-Dorg.eclipse.swt.internal.gtk.cairoGraphics=false
-jar /opt/IBM/SDP//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar 

Problem is seen with RHEL 6.x version and even CentOS. After enough trials and error, a solution that has worked like a charm is to add the below config line to the eclipse ini file, typically found at location: /opt/IBM/SDP

-Dorg.eclipse.swt.browser.UseWebKitGTK=true

How to add an argument to the eclipse ini file:


Note: After making the above changes, the next start of RAD/RTC/Eclipse may crash, but further restarts will not.
 
Related Reading: How to Fix the Latest Eclipse RAD RTC RSA crashes
Search Strings: "rational software architect workspace keeps crashing"
+