【Eclipse】【トラブル】Eclipseに関するトラブルシューティング

■ 検索中に「テキスト検索中に問題が発生しました」が表示されてしまう

解決方法

 * 対象のプロジェクトを右クリックし、「リフレッシュ」を選択するだけ

参考文献

http://pentan.info/program/tools/eclipse/text_search.html

■ Antでビルドした時に、エラーが表示される

詳細

Ant で、ビルドした時に、以下のエラーが表示されてしまう。
~~~~~
build.xml:xxx: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
~~~~~

解決方法

 * 環境変数JAVA_HOME」を以下のように変更し、Eclipseを再起動後に、正常にビルドができた。

 修正前:C:\Program Files\Java\jdk1.7.0_25\bin
 修正後:C:\Program Files\Java\jdk1.7.0_25

参考文献

http://perltips.twinkle.cc/java/ant_error.php

■ [File]-[New]-[<No Applicable Items>] だけが表示され、プロジェクトなどが新規作成できない

詳細

 * Eclipse で、[File]-[New]-[<No Applicable Items>] だけが表示され、
  プロジェクトなどが新規作成できない

解決方法

 * Eclipse で、[Window]-[Open Perspective]-[Java] を選択する

参考文献

https://forums.bukkit.org/threads/no-applicable-items-in-eclipse.101709/

■「This is a build-in profile, change the name to create a new profile.」が表示される

詳細

 * 設定を変更したが
 「This is a build-in profile, change the name to create a new profile.」が
  表示され、「OK」ボタンが非活性となり、設定が変更できない

原因

 ⇒ 上記の手順[1] でフォーマットを作成していなく、デフォルトのフォーマットに対して
   変更しようとしているため。(デフォルトは変更できないため)

解決方法

 * 新しいプロファイル作ってから変更する

■「Unable to install breakpoint in xxxx.Xxxxx due to missing line number attributes」が表示される

詳細

 * Tomcatデバッグしようと起動したら以下のエラー内容が表示。
 * 以下のサイトを参考に、Eclipseの[windows]-[Preferences]-[Java]-[compiler]で
   「Add line number attributes to generated files (used by debugger)」にチェックがあるか確認したが
   既にチェックは付いていた
https://solveme.wordpress.com/2008/08/27/unable-to-install-breakpoint-due-to-missing-line-number-attributes/

エラー内容

Java Breakpoint

Unable to install breakpoint in xxxx.Xxxxx due to missing line number attributes.
Modify compiler options to generate line number attributes.

Reason: Absent Line Number Information

発生環境

 * OS : Linux / Debian7
 * Eclipse : Eclipse Luna
 * JDK : OpenJDK 1.7
 * Tomcat : Tomcat8

解決方法

 * Eclipseの[Project]-[Clean]を行う

参考文献

http://carlosin.blogspot.jp/2011/11/java-unable-to-install-breakpoint-due.html

関連記事

EclipseからSVNへのアクセスエラー「Obtain Project Name' operation finished with error」

http://blogs.yahoo.co.jp/dk521123/34637249.html