- mongodb - 在 MongoDB mapreduce 中,如何展平值对象?
- javascript - 对象传播与 Object.assign
- html - 输入类型 ="submit"Vs 按钮标签它们可以互换吗?
- sql - 使用 MongoDB 而不是 MS SQL Server 的优缺点
命令:
\eclipse-SDK-4.2RC3-win32-x86_64_001\eclipse\plugins>java -jar org.eclipse.osgi_3.8.0.v20120529-1548.jar -console
异常(来自日志文件)
!SESSION 2012-06-22 23:36:27.649 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_25
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -console
!ENTRY org.eclipse.osgi 4 0 2012-06-22 23:36:28.632
!MESSAGE Could not find bundle: org.eclipse.equinox.console
!STACK 0
org.osgi.framework.BundleException: Could not find bundle: org.eclipse.equinox.console
at org.eclipse.osgi.framework.internal.core.ConsoleManager.checkForConsoleBundle(ConsoleManager.java:211)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:297)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at org.eclipse.core.runtime.adaptor.EclipseStarter.main(EclipseStarter.java:151)
!ENTRY org.eclipse.osgi 4 0 2012-06-22 23:36:28.663
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at org.eclipse.core.runtime.adaptor.EclipseStarter.main(EclipseStarter.java:151)
但是下面的 jar 是可用的。
org.eclipse.equinox.console_1.0.0.v20120522-1841.jar
对上述错误有什么建议吗?
最佳答案
您需要安装几个捆绑软件才能使用控制台,如果您仅使用 java -jar ...
启动 Equinox,那么您将无法获得这些捆绑软件。
完成这项工作的最快方法是创建一个名为 configuration/config.ini
的文件,其内容如下:
osgi.bundles=file\:org.eclipse.equinox.console_1.0.0.v20111215-1210.jar@start,file:\org.apache.felix.gogo.runtime_0.8.0.v201108120515.jar@start,file:\org.apache.felix.gogo.shell_0.8.0.v201110170705.jar@start
注意,您必须对照您实际拥有的版本检查这些 bundle 的版本号。我用 SDK-4.2M6 试过这个,可能其中一些在 RC3 中发生了变化。
关于java - org.osgi.framework.BundleException : Could not find bundle: org. eclipse.equinox.console,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11161871/
我正在尝试从文件系统中的 osgi jar 安装并启动一个包 Bundle bundle = context.installBundle("reference:file:" + fullPath);
我正在运行 ONOS,当我想将我的模块添加到其核心时,我收到此异常。以前没问题,但是当我更改操作系统时,出现此错误。 我尝试了很多方法,但没有一个适合我的问题。我也没有 POM 文件来添加依赖项。任何
当我尝试在 Windows XP 上启动 Eclipse Indigo 时,出现错误,提示器告诉我转到日志文件。 显然,它抛出了org.osgi.framework.BundleException:
我正在尝试自下而上地学习 OSGI。从制作和运行 minimal example bundle 开始. 我已经使用 maven 和之前来自 apache felix 网站的链接示例建立了一个简单的项目
我正在尝试设置我的 eclipse 插件开发目标并多次收到以下错误: !ENTRY org.eclipse.e4.ui.css.swt 4 0 2015-01-30 15:15:06.879 !MES
使用 Apache Felix 6.0.1 时,我在初始化 OSGi 框架时遇到以下错误: ERROR: Error parsing system bundle statement. org.osgi
这个Bundle异常是不是因为一次又一次的改变工作空间导致的?我以前正常运行的项目现在在运行时出现此异常。请帮帮我。我已经被这个问题困扰了 2 天。 Manifest-Version: 1
我正在尝试以编程方式启动 OSGi 框架。我为此使用 Felix 框架。下面是我将启动 OSGi 容器的代码。 public GoldeneyeApp() { try { Fr
我正在使用OSGi BundleActivator代码。当我尝试使用 Apache Karaf 安装它时,我总是得到 Unable to install bundle mvn:com.baeldung
我正在处理一个有多个子项目的 maven 项目,在 weasis-core-ui 项目的子项目中,我添加了一些我想在项目中使用的 jar。 我通过在 weasis-core-ui 的 pom.xml
我根据this创建OSGI包教程,但是当我尝试使用以下命令安装 bundle 时: osgi> install file://sample01-1.0.0.jar 它将显示此错误: Hello Wo
从 Karaf 缓存日志中,当我在 karaf 中部署 bundle 时,我多次收到以下错误 !ENTRY org.eclipse.jetty.jndi 4 0 2019-02-21 16:27:11
命令: \eclipse-SDK-4.2RC3-win32-x86_64_001\eclipse\plugins>java -jar org.eclipse.osgi_3.8.0.v20120529-
我正在为 Atlassian Confluence 编写一个插件。我已经让它在开发环境中工作了一段时间了。但是,当我打包插件并将其部署到测试系统中时,插件无法启用。我在堆栈跟踪中看到以下原因/错误消息
更新到最新的 22.6.2 后的 ADT-Bundle(来自 Google 的基于 Eclipse 的发行版)无法启动或卡住 在错误日志 View 中看到很多“While loading class
Closed. This question is off-topic。它当前不接受答案。
我是 Java/Karaf 4.0.9/Maven/Pom/Camel 的新手,我无法解决问题 pom.xml文件中的Json部分,这里我改了很多Json version , 但没有用。
我是一名优秀的程序员,十分优秀!