Eclipseが起動しません

フォーラム(掲示板)ルール
フォーラム(掲示板)ルールはこちら  ※コードを貼り付ける場合は [code][/code] で囲って下さい。詳しくはこちら
ユーマ
記事: 33
登録日時: 6年前

Eclipseが起動しません

#1

投稿記事 by ユーマ » 5年前

皆さんこんにちは。ユーマと申します。

最近、javaを勉強しようとおもいEclipseという統合開発環境をダウンロードしたのですが動かなくて困っております。

-----環境-----

OS:Windows10
JDK:バージョン10.0.1
JRE:バージョン10.0.1
Eclipse:Eclipse 4.7 Oxygen 3a というall in one Eclipseをダウンロードしました。
EclipseのフォルダはCドライブ直下で、JDKとJREはC:\Program Files\Java\にあります。
ユーザ環境変数にはC:\Program Files\Java\jdk-10.0.1\binとC:\Program Files\Java\jre-10.0.1\binを追加しています。


-----実行結果-----

Eclipseフォルダの中のeclipse.exeを実行してみると

"An error has occurred. See the log file C:\eclipse\configuration\(Eclipse.exeを実行するたびに代わる大きな数).log"

とでます。

実際にlogを確認すると、

!SESSION 2018-04-21 15:36:49.483 -----------------------------------------------
eclipse.buildId=4.3.0.M20130911-1000
java.version=10.0.1
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ja_JP
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.osgi 4 0 2018-04-21 15:36:50.122
!MESSAGE Startup error
!STACK 1
java.lang.RuntimeException: Exception in org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start() of bundle org.eclipse.osgi.
at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.resume(InternalSystemBundle.java:233)
at org.eclipse.osgi.framework.internal.core.Framework.launch(Framework.java:656)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:275)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start() of bundle org.eclipse.osgi.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.resume(InternalSystemBundle.java:225)
... 10 more
Caused by: java.lang.IllegalStateException: The System Bundle could not be resolved: Missing Constraint: Bundle-RequiredExecutionEnvironment: J2SE-1.5
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.checkSystemState(BaseStorage.java:827)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.getStateManager(BaseStorage.java:800)
at org.eclipse.osgi.baseadaptor.BaseAdaptor.getState(BaseAdaptor.java:387)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.frameworkStart(BaseStorage.java:923)
at org.eclipse.osgi.baseadaptor.BaseAdaptor.frameworkStart(BaseAdaptor.java:250)
at org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start(SystemBundleActivator.java:60)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
... 12 more

このように書かれていました。
自分には知識不足で内容が理解できませんでした。

また、コマンドラインでeclipseのフォルダに行き eclipsec.exe(eclipseをコンソールから実行するためのファイル)を実行すると、

Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.eclipse.osgi.internal.baseadaptor.BaseStorage (file:/c:/eclipse/plugins/org.eclipse.osgi_3.9.1.v20130814-1242.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of org.eclipse.osgi.internal.baseadaptor.BaseStorage
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

とかかれていました。
この内容もあまり理解できませんでした。申し訳ないです。

ちなみにEclipseのワークスペースなどを設定する画面にすらたどり着けません。

分かっていることをかなり書いたつもりですが、もし足りないことなんかがあったら教えてくださると助かります。

ISLe
記事: 2650
登録日時: 13年前
連絡を取る:

Re: Eclipseが起動しません

#2

投稿記事 by ISLe » 5年前

「Eclipse 4.7 Oxygen 3a というall in one Eclipse」というのは、MergeDoc ProjectのPleiades All in One Eclipseのことでしょうか?

その場合…
1. eclipse.exeのあるフォルダが、Pleiades All in One Eclipseでは、C:\pleiades\eclipseとなるはずであるが、C:\eclipseとなっている。
2. 4.7 Oxygen 3aをダウンロードしたとあるのに、メッセージの内容は4.3 Keplarである。
という不可解な情報が読み取れるのみです。

ダウンロードした「Eclipse 4.7 Oxygen 3a というall in one Eclipse」からeclipseフォルダの内容だけを抜き出して、既存のC:\eclipseの4.3 Keplarに上書きしたのでしょうかね。

ユーマ
記事: 33
登録日時: 6年前

Re: Eclipseが起動しません

#3

投稿記事 by ユーマ » 5年前

ISLeさんの変身を参考にもう一度インストールしなおしたところ、結果として動くようになりました。

どうやらパスのことを考えず、自分で勝手にC:\pleiades\なかののeclipseのフォルダをc:\に移動させてしまったのが問題だったようです。

(対処方法)ダウンロードしたPleiades All in One EclipseをCドライブ直下に解凍したら動くようになりました。


ISLeさんは自分のした質問を二つとも答えてくださったようですね。
初歩的な質問ばかりでしたが紳士に答えてくださりありがとうございました。

これからもよろしくお願いします。

返信

“C言語何でも質問掲示板” へ戻る