首页 / 操作系统 / Linux / Ubuntu 14.04 下Eclipse 3.7.2 无法启动解决
解决Ubuntu 14.04 下Eclipse 3.7.2 不能启动,报Could not detect registered XULRunner to use 或 org.eclipse.swt.SWTError: XPCOM 等问题的处理。对于eclipse 3.7.2在ubuntu 14.04下不能启动,需要在eclipse/configuration 目录下的config.ini文件内增加一行org.eclipse.swt.browser.DefaultType=mozilla
#This configuration file was written by: org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser
#Thu Jan 15 11:18:24 CST 2015
org.eclipse.update.reconcile=false
eclipse.p2.profile=epp.package.jee
osgi.instance.area.default=@user.home/workspace
osgi.framework=file:plugins/org.eclipse.osgi_3.7.2.v20120110-1415.jar
equinox.use.ds=true
eclipse.buildId=M20120208-0800
org.eclipse.swt.browser.DefaultType=mozilla
osgi.bundles=reference:file:org.eclipse.equinox.simpleconfigurator_1.0.200.v20110815-1438.jar@1:start
org.eclipse.equinox.simpleconfigurator.configUrl=file:org.eclipse.equinox.simpleconfigurator/bundles.info
eclipse.product=org.eclipse.platform.ide
osgi.splashPath=platform:/base/plugins/org.eclipse.platform
osgi.framework.extensions=reference:file:javax.transaction_1.1.1.v201105210645.jar
osgi.bundles.defaultStartLevel=4
eclipse.p2.data.area=@config.dir/../p2/
eclipse.application=org.eclipse.ui.ide.workbench这样启动就不会报错了 这是我google出来的 我不能说明原因。能启动之后 当你点击内嵌的浏览器 或者 webservie 浏览器时 不是报错 没有反映 就是在当前窗体外启动了外部浏览器 另外编辑jsp时报错 Could not detect registered XULRunner to use这些都是因为为eclipse 的内嵌浏览器 没有生效。我们应该这样做对一eclipse 3.7.2 版本请去http://ftp.mozilla.org/pub/mozilla.org/xulrunner/nightly/2012/03/2012-03-02-03-32-11-mozilla-1.9.2/xulrunner-1.9.2.28pre.en-US.linux-x86_64.tar.bz2下载xulrunner-1.9.2.28pre.en-US.linux-x86_64.tar.bz2 解压到一个合适的问题 比如我解压到了 /opt/commonTools/下 在/opt/commonTools/下就有一个xulrunner目录。tone@ubuntu:/opt/commonTools$ ls -l
总用量 43176
drwxrwxr-x 13 tone tone 4096 12月 20 12:35 Android-sdk-linux
drwxr-xr-x 6 root root 4096 11月 17 11:08 apache-ant-1.9.3
drwxr-xr-x 7 root root 4096 11月 17 10:30 apache-maven-3.2.2
drwxr-xr-x 9 root root 4096 10月 9 2009 jdk1.5.0_22
-rwxr-xr-x 1 root root 44191305 1月 13 16:16 jdk-1_5_0_22-linux-amd64.bin
drwxr-xr-x 11 root root 4096 3月 2 2012 xulrunner接下来边界eclipse的配置文件。eclipse.ini 增加一行-Dorg.eclipse.swt.browser.XULRunnerPath=/opt/commonTools/xulrunner-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni
-Dorg.eclipse.swt.browser.XULRunnerPath=/opt/commonTools/xulrunner
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m经过以上的错误 你的eclipse 和谐了,效果如下:针对Could not detect registered XULRunner to use 或 org.eclipse.swt.SWTError: XPCOM 的解决办法(安装XULRunner) 针对最新的myeclipse 2014 依然有效--------------------------------------分割线 --------------------------------------Ubuntu 14.04 LTS安装Java 8和Eclipse 4.4 http://www.linuxidc.com/Linux/2014-11/109217.htmHadoop Eclipse 插件编译安装1.2.0 http://www.linuxidc.com/Linux/2013-07/87428.htmHadoop在Eclipse中的插件编译 http://www.linuxidc.com/Linux/2013-04/83295.htmHadoop 1.2.1编译Eclipse插件 http://www.linuxidc.com/Linux/2013-10/91666.htmUbuntu 13.10安装JDK、Eclipse for C/C++(解决全局菜单问题) http://www.linuxidc.com/Linux/2013-11/92305.htm如何在Ubuntu 14.04中安装最新版Eclipse http://www.linuxidc.com/Linux/2014-08/105090.htm--------------------------------------分割线 --------------------------------------更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2本文永久更新链接地址