Search in file does not work in Eclipse

When Eclipse is run with GCJ (GNU compiler for Java) the file search does not work properly. This problem can be Solved by adding a file ~/.eclipse/eclipserc with the following content:

export JAVA_HOME=<path-to-jvm>

Replace <path-to-jvm> by the path to the installed JVM of Oracle, for example: /usr/lib/jvm/java-1.5.0-sun-1.5.0.11

For details see the bug in the Eclipse bug database.