If the JDK version is correct in Eclipse but an error occurs or the compiler does not work properly

What to do if an error occurs or the compiler does not work properly even though the JDK version is correct in Eclipse

procedure

  1. Open Window-> Preferences-> Java-> Compiler
  2. Change the Compiler compliance level of JDK Compliance to another version once.
  3. Press Apply and Close
  4. A confirmation screen will appear. Press Yes and wait for a while until the process is completed.
  5. Return the Compiler compliance level to the desired version from the screen of 1.
  6. Follow steps 3 and 4

If the settings are correct on the display but the JDK is not working properly, this operation may help.

Recommended Posts

If the JDK version is correct in Eclipse but an error occurs or the compiler does not work properly
If the ctrl + shortcut does not work in Eclipse, disabling welcome may help
The problem that the JDK set in JAVA_HOME does not appear even if java -version is performed at the command prompt
[Eclipse] Version 1.8.0_261 of the JVM is not suitable for this product. Version: 11 or greater is required Error
The devise error message is not displayed properly.
When the project is not displayed in eclipse
Processing when an ID that does not exist in the database is entered in the URL
The story when the container does not start up with docker-compose up and an error occurs
Customize the display when an error such as 404 Not Found occurs in Spring Boot
[Error] The app is not displayed in the production environment
What to do if you installed Ruby with rbenv but the version does not change
[Ruby] The gem should have been installed in vendor / bundle, but an error occurs in require
It doesn't work if the Map key is an array
Error in production environment (The asset "~" is not present in the asset pipeline.)
Docker does not work when DOCKER_HOST is specified in WSL2
An error occurs when codedeploy-agent is installed in Ubuntu Server 20.04
The repository ... is not signed error in docker build apt-get update
It should be the same as the sample when logging in to Twitter, but an error occurs ~ resolution
Pay.JP Solution when it can be done locally but it does not work well in the production environment
An active hash that can be treated as data even if it is not in the database