org.osgi.framework.BundleException: Could not find bundle: org.eclipse.equinox.console

眉间皱痕 提交于 2019-12-02 20:26:51

You need a couple of bundles installed in order to use the console, and if you launch Equinox using just java -jar ... then you will not get those bundles.

The quickest way to get this working is to create a file named configuration/config.ini with the following content:

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

NB you will have to review the version numbers of those bundles against what you actually have. I tried this with SDK-4.2M6, it's possible that some of these have changed in RC3.

In the new versions of equinox the built-in OSGi shell has been replaced to the felix gogo shell. If you want to use the new shell you have to place the gogo jars, and define them in your config file.

But, if you liked the OSGi Equinox shell you just have to add the following line to your config.ini file to use it: osgi.console.enable.builtin=true. In this case no need to add extra jars or any configuration.

This is because the default shell of Eclipse has been moved to "Apache Felix Gogo"; so the necessary bundles must be added to the "Run Configuration" before running. Followings are the four bundled that you need to select from the list:

org.apache.felix.gogo.command_0.10.0v<version>.jar
org.apache.felix.gogo.runtime_0.10.0v<version>.jar
org.apache.felix.gogo.shell_0.10.0v<version>.jar
org.eclipse.equinox.console_1.0.100<version>.jar

After adding these as shown in the above diagram, the program runs smoothly.

Reference: http://www.digizol.com/2013/11/Eclipse-org-osgi-framework-BundleException-equinox-console.html

I had the same problem I've tried to add osgi.console.enable.builtin=true in the config.ini file but it seems that the file get recreated every time I run project the way I solve the problem Run Configurations --> Arguments tab add -Dosgi.console.enable.builtin=true in the VM Arguments

I am using Eclipse Helios and Eclipse Juno on Ubuntu Linux. I had the same error on Eclipse Juno and I wasn't able to start Eclipse. I don't know how but my Java version was decreased to 1.5, which caused the problem.

In Eclipse Helios, Java 1.5 was causing problem, but I was able to start Eclipse. The error that appeared i Eclipse Helios was:

An internal error occurred during: "Loading Web Service DOM...".

org.eclipse.emf.ecore.util.EcoreEMap$DelegateEObjectContainmentEList

Updating the Java version to 1.7 solved the problem. I guess Eclipse Juno doesn't work with Java 1.5 :)

sahaya jenifa rosy

Try using a new workspace. To force the workspace window prompt, you need to change the settings in Eclipse_root_dir\configuration\.settings\org.eclipse.ui.ide.prefs and set SHOW_WORKSPACE_SELECTION_DIALOG to true

one of variant is choose another java version (older then default) , eclipse old version got error when it try to run on java 9 error

sudo update-alternatives --config java

i chose java 8 and all work

apoorva gaurav

Go to Eclipse_root_dir\configuration\.settings\org.eclipse.ui.ide.prefs and change path of RECENT_WORKSPACES to some different path.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!