Eclipse Equinox OSGi平台的启动方式一般有两种:一种是直接通过startup.jar启动,另一种是通过Equinox提供的可执行的加载器(Launcher)启动。两种方式都是通过读取config.ini文件初始化系统,只是配置方式有所不同。
通过startup.jar启动
命令: java -jar startup.jar -console -clean
configuration/config.ini的配置很简单,只需要在osgi.bundles参数加入你需要启动的插件,示例配置如下:
INI 代码
- osgi.bundles=org.eclipse.osgi.services@1:start, org.eclipse.osgi.util@1:start, org.eclipse.equinox.common@1:start, ...你的插件
-
- eclipse.ignoreApp=true //重要:让equinox平台不检查eclipse.product和eclipse.application配置
-
- osgi.clean=true //保证每次启动清除cache
-
- osgi.console= //显示控制台,以便查询系统、插件、服务状态
-
- osgi.noShutdown=true //重要:缺省情况下,Equinox启动后马上shutdown;通过该参数配置equinox启动后不关闭
-
- eclipse.buildId=@build@
-
- eof=eof
通过可执行的Launcher启动
命令: eclipse.exe (Window平台下)
configuration/config.ini的配置文件中除了自己的插件,还需要增加很多Eclipse/Equinox的插件,示例配置如下:
java 代码
- osgi.bundles=org.eclipse.osgi.services@1:start, org.eclipse.osgi.util@1:start,
- org.eclipse.equinox.common@1:start, org.eclipse.equinox.preferences@1:start,
- org.eclipse.equinox.registry@1:start, org.eclipse.equinox.app@1:start,
- org.eclipse.core.jobs@1:start, org.eclipse.core.contenttype@1:start,
- org.eclipse.update.configurator@1:start, org.eclipse.core.runtime@1:start,
- org.eclipse.core.runtime.compatibility@1, org.eclipse.core.runtime.compatibility.auth@1,
- org.eclipse.core.runtime.compatibility.registry@1,
-
- eclipse.ignoreApp=true
- osgi.noShutdown=true
- osgi.console=
- osgi.clean=true
Equinox的启动参数见下面文档:
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/misc/index.html
分享到:
- 2007-01-12 18:09
- 浏览 7273
- 评论(3)
- 论坛回复 / 浏览 (3 / 7858)
- 查看更多
相关推荐
maven-osgi-plugin-launcher-framework-equinox-1.0.15.jar
org.eclipse.equinox.executable org.eclipse.equinox.launcher org.eclipse.osgi org.eclipse.osgi.tests 另加几篇分析的文章
Eclipse-plugins 插件,eclipse 各种插件 .jar 包,免费下载 eclipse202106 -plugins 各种插件 .jar 包,免费下载 如果下载不了,关注我,评论区联系我,
Eclipse-plugins 插件,eclipse 各种插件 .jar 包,免费下载 eclipse202106 -plugins 各种插件 .jar 包,免费下载 如果下载不了,关注我,评论区联系我,
maven-osgi-plugin-launcher-framework-equinox-1.0.19.jar
maven-osgi-plugin-launcher-framework-equinox-1.0.18.jar
maven-osgi-plugin-launcher-framework-equinox-1.0.17.jar
maven-osgi-plugin-launcher-framework-equinox-1.0.16.jar
maven-osgi-plugin-launcher-framework-equinox-1.0.14.jar
maven-osgi-plugin-launcher-framework-equinox-1.0.13.jar
maven-osgi-plugin-launcher-framework-equinox-1.0.12.jar
maven-osgi-plugin-launcher-framework-equinox-1.0.11.jar
maven-osgi-plugin-launcher-framework-equinox-1.0.10.jar
maven-osgi-plugin-launcher-framework-equinox-1.0.9.jar
maven-osgi-plugin-launcher-framework-equinox-1.0.8.jar
Eclipse-plugins 插件,eclipse 各种插件 .jar 包,免费下载 eclipse202106 -plugins 各种插件 .jar 包,免费下载 如果下载不了,关注我,评论区联系我,
maven-osgi-plugin-launcher-framework-equinox-1.0.8b.jar
Eclipse-plugins 插件,eclipse 各种插件 .jar 包,免费下载 eclipse202106 -plugins 各种插件 .jar 包,免费下载 如果下载不了,关注我,评论区联系我,
Eclipse-plugins 插件,eclipse 各种插件 .jar 包,免费下载 eclipse202106 -plugins 各种插件 .jar 包,免费下载 如果下载不了,关注我,评论区联系我,