1

我有 Eclipse 3.8.1,我想查看启动了哪些 OSGi 包,所以我在eclipse/plugins 目录的cmd中编写:

java -jar org.eclipse.osgi_3.8.1.v20120830-144521.jar -console

但什么也没发生,只有空行

我必须安装一些东西才能看到它们吗?

4

2 回答 2

3

如果您已经运行了 Eclipse,那么您可以从控制台视图访问主机 OSGI 控制台

主机 OSGI 控制台

更新 我认为就是你要找的

$ java -Dosgi.bundles=org.eclipse.equinox.console_1.0.0.v20120522-1841.jar@start,org.apache.felix.gogo.command_0.8.0.v201108120515.jar@start,org.apache.felix.gogo.runtime_0.8.0.v201108120515.jar@start,org.apache.felix.gogo.shell_0.8.0.v201110170705.jar@start -jar org.eclipse.osgi_3.8.1.v20120830-144521.jar -console
于 2013-03-22T08:29:22.650 回答
0

有两种选择。这些如下:

  1. 创建一个配置文件夹并放置一个 config.ini 文件。在 config.ini 文件中设置以下内容:

osgi.console.enable.builtin=true

这将使用默认控制台启动 Equinox 框架。

  1. 或采取以下步骤。有关详细信息检查:http ://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fconsole_shell.htm

将必要的捆绑包放在一个文件夹中。捆绑包是:

org.apache.felix.gogo.command_0.8.0v<version>.jar
org.apache.felix.gogo.runtime_0.8.0v<version>.jar
org.apache.felix.gogo.shell_0.8.0v<version>.jar
org.eclipse.equinox.console_1.0.0v<version>.jar
org.eclipse.osgi.jar

在其中创建一个配置子文件夹和一个 config.ini 文件。在 config.ini 文件中添加以下条目:

osgi.bundles=./org.apache.felix.gogo.runtime_0.8.0v<version>.jar@start,\
./org.apache.felix.gogo.command_0.8.0v<version>.jar@start,\
./org.apache.felix.gogo.shell_0.8.0v<version>.jar@start,\
./org.eclipse.equinox.console.jar@start,\
osgi.console.enable.builtin=false
osgi.console=<port>

使用以下命令行启动 Equinox 框架:java -jar org.eclipse.osgi.jar

于 2013-04-02T15:54:46.670 回答