春分发射器

发布于 2024-09-24 10:32:08 字数 234 浏览 1 评论 0原文

通过 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

烧了回忆取暖 2024-10-01 10:32:08

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.

心碎的声音 2024-10-01 10:32:08

出色地。这两种方法用来启动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 the org.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 invoking java -jar plugins/org.eclipse.osgi_3.6.0.v20100517.jar. It actually calls the main method in the EclipseStarter 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文