如何启动OSGI控制台(Equinox) [英] How to start osgi console (Equinox)

查看:393
本文介绍了如何启动OSGI控制台(Equinox)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows 7中启动OSGi控制台.

I'm trying to start an OSGi console in Windows 7.

我在终端窗口上使用了以下语句:

I used this statement on a terminal window:

java -jar org.eclipse.osgi.jar -console

但是它不起作用,就是什么也不会发生,也不会出现提示osgi>.而且,除了^C使得重新出现通常的终端提示之外,在键盘上键入都是无效的.

But it doesn't work that is nothing does happen nor doesn't appear prompt osgi>. And typing on keyboard is ineffective except for ^C that makes to reappear usual terminal prompt.

有人有什么建议吗?

推荐答案

从Equinox 3.8.0.M4开始,它具有一个新的控制台.因此,您还需要这四个捆绑软件才能使其正常运行.

Starting from Equinox 3.8.0.M4, it has a new console. So you need also these four bundles for it to run properly.

  1. org.eclipse.equinox.console.jar
  2. org.apache.felix.gogo.shell.jar
  3. org.apache.felix.gogo.command.jar
  4. org.apache.felix.gogo.runtime.jar
  1. org.eclipse.equinox.console.jar
  2. org.apache.felix.gogo.shell.jar
  3. org.apache.felix.gogo.command.jar
  4. org.apache.felix.gogo.runtime.jar

这些jar文件可以在Eclipse安装文件夹的"plugins"文件夹下找到.复制这些罐子,并将它们与org.eclipse.osgi.jar放在同一文件夹中,如下所示:

These jar files can be found in your Eclipse installation folder under 'plugins' folder. Copy these jars and put them in the same folder with your org.eclipse.osgi.jar and it would look like:

  • somedir/
    • 配置/
      • config.ini
      • somedir/
        • configuration/
          • config.ini

          然后将config.ini编辑为:

          osgi.bundles=org.apache.felix.gogo.runtime@start, org.apache.felix.gogo.command@start, org.apache.felix.gogo.shell@start, org.eclipse.equinox.console@start

          完成此操作后,在命令行中运行java -jar org.eclipse.osgi.jar -console,OSGi控制台将启动.

          After doing this, run java -jar org.eclipse.osgi.jar -console in your command line and the OSGi console will start.

          参考错误371101

          这篇关于如何启动OSGI控制台(Equinox)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆