0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Eclipse】エラー解決記録(更新中)

Last updated at Posted at 2025-02-13

はじめに

Java用EclipseとPHP用Eclipseの2種のEclipseを使っています。
Eclipseを使う際、Eclipseの設定等でつまることがちょくちょくあるので、今後はここに都度それらのエラーを記録していこうと思いました。

1_Eclipse起動時のエラー

1-a_JRE or JDK must be available in order to run Eclipse. No...

<事象>
Java用のEclipseを起動しようと[eclipse.exe]を押下したら、以下のエラーメッセージが出て起動できない。
「A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations:C:(省略)/pleades/2024-09/java/21/bin」
2025-02-13_09h03_58.png

<解決策>
eclipse.iniに記述されているパスを書き換える。

詳細:
1)[C:(省略)\pleiades\2024-09\eclipse\eclipse.ini]を開く
2)2行目の参照先パスを正しいパスに書き換えて上書き保存

-vm
C:/(省略)/pleiades/2024-09/java/21/bin ←ここを正しいパスに書き換える!

3)改めて[eclipse.exe]を押下すると、無事Eclipse起動できる

<原因>
pleadesフォルダを配置した(Cドライブ直下の)フォルダの名前を以前変更していたことが原因だった。
なので、eclipse.iniに記述されている参照先フォルダ名を、変更後のフォルダ名に書き換えれば解決できた。

<参考>

2_デバック時のエラー

2-a_Eclipse(PHP)「デバッグ・モードで開始できませんでした」→デバッガー(Xdebug)をダウンロードして解決!

PHP用Eclipse使用時のエラー。こちらの記事に記録。

3_WARファイル取扱時のエラー

3-a_WARファイルをインポートするとフォルダ構成が変わってしまう→未解決

Java用Eclipse使用時のエラー。こちらの記事に記録。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?