春分发射器
通过 java -jar plugins/org.eclipse.osgi_3.6.0.v20100517.jar 启动 Equinox 和使用 org.eclipse.equinox.launcher (基本上,java -jar插件/org.eclipse.equinox.launcher_1.1.0.v20100507.jar)?
我认为 org.eclipse.equinox.launcher 提供了一些附加值,但到底是什么?
What is the big difference between launching Equinox via java -jar plugins/org.eclipse.osgi_3.6.0.v20100517.jar
and using org.eclipse.equinox.launcher (basically, java -jar plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
)?
I suppose that org.eclipse.equinox.launcher provides some added value, but what exactly?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
equinox.launcher 在启动 osgi 框架之前处理特殊参数。如果你想了解更多,最好的方法是阅读 equinox.launcher 的源代码。
equinox.launcher processes special arguments before starting osgi framework. If you want to know more, the best way is reading the source code of equinox.launcher.
出色地。这两种方法用来启动Equinox框架的类是org.eclipse.core.runtime.adaptor.EclipseStarter。它位于 org.eclipse.osgi_version.jar 中。
他们使用同一个类。所以,基本上,它们是相同的。
然而,equinox.launcher 提供了更多附加功能。例如,默认的启动横幅、检查安全性和安装路径、更多调试信息等。equinox.launcher
旨在用作框架/应用程序的应用程序启动器。
如果您通过调用
java -jar plugins/org.eclipse.osgi_3.6.0.v20100517.jar
直接运行org.eclipse.osgi_3.6.0.v20100517.jar
文件。它实际上调用了 EclipseStarter 类中的 main 方法。此类旨在用作框架的可编程启动器。这意味着如果您想从代码中启动 Equinox 框架,则应该使用此类。
一般来说,您应该使用 equinox.launcher 从命令行或其他类似方式启动 OSGi 应用程序。
希望这有帮助。
Well. The class which is used by both methods to start equinox framework is
org.eclipse.core.runtime.adaptor.EclipseStarter
. It's located in theorg.eclipse.osgi_version.jar
.They use the same class. So, basically, they are the same.
However, the equinox.launcher provides more additional features. For example, a default splash banner, checking security and installation path, some more debug information etc.
The equinox.launcher is intended to be used as an application launcher of the framework/application.
If you directly run the
org.eclipse.osgi_3.6.0.v20100517.jar
file by invokingjava -jar plugins/org.eclipse.osgi_3.6.0.v20100517.jar
. It actually calls the main method in theEclipseStarter
class.This class is intended to be used as a programmable starter of the framework. That means you should use this class if you want to start the equinox framework from your code.
Generally speaking, you should use equinox.launcher for launching your OSGi application from command line or other similar means.
Hope this helps.