web-dev-qa-db-ja.com

org.osgi.framework.BundleException:バンドルが見つかりませんでした:org.Eclipse.equinox.console

コマンド:

\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

[〜#〜] nb [〜#〜]実際に持っているものと比較して、それらのバンドルのバージョン番号を確認する必要があります。 SDK-4.2M6でこれを試しましたが、RC3でこれらの一部が変更された可能性があります。

25
Neil Bartlett

分点の新しいバージョンでは、組み込みのOSGiシェルがfelix gogoシェルに置き換えられました。新しいシェルを使用する場合は、gogo jarを配置して、構成ファイルで定義する必要があります。

ただし、OSGi Equinox Shellが気に入った場合は、次の行をconfig.ini使用するファイル:osgi.console.enable.builtin=true。この場合、追加のjarや構成を追加する必要はありません。

15
Come get some

これは、Eclipseのデフォルトのシェルが「Apache Felix Gogo」に移動したためです。そのため、実行する前に必要なバンドルを「実行構成」に追加する必要があります。以下は、リストから選択する必要がある4つのバンドルです。

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

enter image description here

上記の図に示すようにこれらを追加すると、プログラムはスムーズに実行されます。

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

9

追加しようとしたときに同じ問題が発生しましたosgi.console.enable.builtin=true config.iniファイルにありますが、問題を解決する方法でプロジェクトを実行するたびにファイルが再作成されるようです。実行構成->引数タブを追加-Dosgi.console.enable.builtin=true in VM Argumentsenter image description here

7
Radoslav

Ubuntu LinuxでEclipse HeliosとEclipse Junoを使用しています。 Eclipse Junoでも同じエラーが発生し、Eclipseを起動できませんでした。 方法はわかりませんが、私のJavaバージョンが1.5に減少したため、問題が発生しました

Eclipse Heliosでは、Java 1.5が問題を引き起こしていましたが、Eclipseを起動できました。EclipseHeliosに表示されたエラーは次のとおりです。

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

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

Javaバージョンを1.7に更新すると問題が解決しました。Eclipse JunoはJava 1.5 :)では動作しないと思います

1

新しいワークスペースを使用してみてください。ワークスペースウィンドウのプロンプトを強制するには、Eclipse_root_dir\configuration\.settings\org.Eclipse.ui.ide.prefsの設定を変更し、SHOW_WORKSPACE_SELECTION_DIALOGをtrueに設定する必要があります。

0

バリアントの1つは別のものを選択しますJavaバージョン(古い場合、デフォルト) Java 9エラー

Sudo update-alternatives --config Java

Java 8を選択し、すべて動作します

0
vitalinvent