I was trying to compile the Hadoop MapReduce WordCount problem and faced the following error. I was using Java 1.8 version.
Error:
Downgrade your Java version from 1.8 to 1.7. Below are the steps I have followed to resolve this error.
1. I have uninstalled Java 1.8 latest version from my computer. Go to Control Panel, Programs and Features and then uninstall the Java 1.8 Kit.
2. Download and install Java 1.7 version. Change the PATH environment variable on your windows to point to new installed version of Java as in add "C:\Program Files\Java\jdk1.7.0_67\bin" to PATH env. variable.
3. Restart the computer.
4. Open your Eclipse and try to build and compile your project against 1.7. Your error should disappear.
Error:
- The project was not built since its build path is incomplete. Cannot find the class file for java.util.Map$Entry. Fix the build path then try building this project.
- The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files.
Downgrade your Java version from 1.8 to 1.7. Below are the steps I have followed to resolve this error.
1. I have uninstalled Java 1.8 latest version from my computer. Go to Control Panel, Programs and Features and then uninstall the Java 1.8 Kit.
2. Download and install Java 1.7 version. Change the PATH environment variable on your windows to point to new installed version of Java as in add "C:\Program Files\Java\jdk1.7.0_67\bin" to PATH env. variable.
3. Restart the computer.
4. Open your Eclipse and try to build and compile your project against 1.7. Your error should disappear.