[JAVA] What to do if you select a JRE in Eclipse and get "The selected JRE does not support the current compliance level 11"

When I used Eclipse for the first time in a long time, I thought "What?", So make a note of it. It's natural if you understand it, but it's strange until you understand it.

--Environment --macOS Mojave version 10.14.5 - Eclipse IDE for Enterprise Java Developers. Version: 2019-03 (4.11.0)

Event: I got a warning when I selected "java8" in [Installed JRE].

スクリーンショット 2019-06-06 22.53.02.png

Cause: You are leaving the compiler compliance level at the default

A message prompting me to change was displayed at the bottom of the screen. スクリーンショット 2019-06-06 22.56.40.png

Action: Change the compliance level of the compiler

  1. (Side menu> [Java]> [Compiler]) OR (Press the link in the above message)
  2. [JDK compliant]> [Compiler compliance level]> Change to "1.8" in this case
  3. Click the [Apply] button
  4. A message prompting you to rebuild is displayed> Click the [Yes] button

Recommended Posts

What to do if you select a JRE in Eclipse and get "The selected JRE does not support the current compliance level 11"
The selected JRE does not support the current compliance level of 15
What to do if you get a java.io.IOException in GlassFish
What to do if you get Could not save master table to file after importing a project in Eclipse
What to do if you get a gcc error in Docker
What to do if you get a DISPLAY error in gym.render ()
[Java] What to do if you get an error in Eclipse saying "Not allowed at source level below 1.X"
What to do if you get a groovy warning in Thymeleaf Layout
What to do if you get a JNI shared library error when trying to build in Eclipse
What to do if Operation not permitted is displayed when you execute a command in the terminal
What to do if you get a javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake in the IBM JDK
What to do if you get a wrong number of arguments error in binding.pry
What to do if you get a NoClassDefFoundError when trying to run eclipse on Java9
What to do if the JSONHint annotation does not work with lombok and JSONIC
What to do if the breakpoint is shaded and does not stop during debugging
What to do if you installed Ruby with rbenv but the version does not change
What to do if you get a "302" error in your controller unit test code in Rails
What to do if you forget the root password in CentOS7
[Maven] What to do if you are asked to incorporate a jar that is not in the remote repository into the war
What to do if you get a "Mysql2 :: Error: Operand should contain 1 column (s)" error in Rails
What to do if the prefix c is not bound in JSP
What to do if you can't install the plugin from the Eclipse marketplace
What to do if you get a MiniMagick vulnerability alert on GitHub
What to do if you can't bundle update and bundle install after installing Ruby 3.0.0 in the Rails tutorial
What to do if you get a SQLite3 :: BusyException: database is locked error
What to do if you get Could not locate Gemfile or .bundle / directory
What to do if you can't activate the select box created by bootstrap-select
What to do if you get the error message unrecognized selector send to instance "***"
What to do if the changes are not reflected in the jar manifest file
What to do when rails db: seed does not reflect in the database
What to do if you get To install the missing version, run `gem install bundler: 2.1.4`
What to do if you get an "A server is already running." Error when you try to start the rails server
What to do if you accidentally create a model
What to do if the update does not take effect after deploying Rails AWS
What to do if you get the error Couldn't find Item without an ID
What to do if you get a port error when docker-compose up on Mac
What to do if you get an error saying "Could not find a JavaScript runtime." When starting rails server
[Solution] What to do if you get a Docker error'ERROR: Cannot connect to the Docker daemon at unix: ///var/run/docker.sock. Is the docker daemon running?'
What to do if you get the warning "Uniqueness validator will no longer enforce case sensitive comparison in Rails 6.1." in Rails 6.0
If hash [: a] [: b] [: c] = 0 in Ruby, I want you to extend it recursively even if the key does not exist.
What to do if you don't see the test code error message in the terminal console
[Rails] What to do if you accidentally install bundle in the production environment in your local environment
[Rails Tutorial Chapter 2] What to do when you make a mistake in the column name
What to do if you get a "Cannot Pull Container Error" when starting ECS ​​Fargate
[Rails] What to do if you can't get an error message with the errors method
What you need to do to open a file from the menu in the document-Based App macOS app
What to do when Rails on Docker does not reflect controller changes in the browser
What to do if you get an error in Basic authentication during Rails test code
What to do if you can't use the rails command
What to do if you get further occurrences of http header parsing errors will be logged at debug level. In tomcat 8.5.37
What to do when "relation" hibernate_sequence "does not exist" in the ID column of PostgreSQL + JPA
[Rails] What to do when the error No database selected and Unknown database appears in db: migrate
[Note] What to do if bundle install in Chapter 3 of the rails tutorial is not possible
If you want to mock a method in RSpec, you should use the allow method for mock and the singleton method.
What to do if you get an [An HTTP request took too long to complete.] Error in Docker.
What to do if you get "Changes not staged for commit:" when you git status after git add.
[Ubuntu 20.04] What to do if the external monitor is not recognized
What to do when an UnsupportedCharsetException occurs in a lightweight JRE
[Rails] What to do if data is not registered in DB
What to do when the changes in the Servlet are not reflected
What to do if the Rails page doesn't appear in Rails tutorial 1.3.2