[JAVA] I get an error when adding a dependency

If TOMCAT does not start after adding to Maven project while using Eclipse.

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/maven/cli/MavenCli : Unsupported major.minor version 51.0

If the above error (Java execution environment is old and Maven does not work) appears in the console log, change the execution environment to Java 1.8.

  1. Project → Right click on JRE System Library → Properties
  2. Double-click Java Build Path → Library → JRE System Library
  3. Change the execution environment to Java SE-1.8

Also, if you see an error such as "invalid ... header" in the "Problem" log, -Close Eclipse, delete "C: \ Users \ {each user name} \ .m2 \ repository", and restart.

Reference: [The story that the error was not solved even if the library was added using maven](The story that the error was not solved even if the library was added using maven http://hiisori.jugem.jp /? eid = 26) See also: Java 6 Unsupported major.minor version 51.0

Recommended Posts

I get an error when adding a dependency
I have a question. I get an error when playing a video in Listview on android.
A reminder when an aapt.exe error occurs
I get a 404 error when testing forms authentication with Spring Security
I get a Ruby version error when I try to start Rails.
[Visual Studio Code] I get a syntax error when debugging when using rbenv
I got an error when I ran rake routes.
I get an error when I try to use "^" or "$" in ruby ​​regular expression
When I bcrypt with node + docker, I got an error
I got an error when trying to install sbt to build a Scala development environment
A memo when "I do not get a certificate error with a self-signed certificate using Java's Keytool"
I got an error when using nextInt, nextLine and substring.
I found no way to get the error code when I received an exception on Android
When starting Eclipse debug, I get a `ERROR: JDWP Transport dt_socket failed` error and cannot start.
[Java] Adding an element to the Collection causes a compile error
Collecting client information when an error occurs in a web application
I got a Permission Denied error when I put Laravel in Docker
I get an error with bundle install and puma cannot be installed.
When I ran a jar created using WildFly Swarm, I got an InvocationTargetException.
After adding a Gem, it says There was an error parsing `Gemfile`
I want to display an error message when registering in the database
What to do if you get an error when you hit Heroku logs
I can deploy Heroku, but I get an error and can't open it
When registering a new user, I got an error called ActiveRecord :: NotNullViolation and how to deal with it.
What to do if you get an "A server is already running." Error when you try to start the rails server
What I tried when I wanted to get all the fields of a bean
Beginner: I get an error on line 30. I don't know where to fix it.
(Capistrano) After deploying, I get a We're sorry… error in the production environment.
When I try to run docker-compose, I get the error "Cannot locate specified Dockerfile: Dockerfile"
I managed to get a blank when I brought the contents of Beans to the textarea
When using a list in Java, java.awt.List comes out and an error occurs
I get a javax.mail.AuthenticationFailedException even though I haven't authenticated.
When deploying to Heroku, OpenApp causes an error
[Mockito] 3.2.4 → 3.3.x, but I got an error (Iketenai)
[Java] Get a random value from an array
[Ruby] When adding a null constraint to a table
What to do if you get an error saying "Please enter a valid value" when getting with Rails datetime_field
What to do if you get an error saying "Could not find a JavaScript runtime." When starting rails server
[Ruby on Rails] I get a warning when running RSpec because gem'chromedriver-helper' is deprecated.
What to do if you get a port error when docker-compose up on Mac
What I thought when I started working as an engineer
I get Mysql2 :: Error :: ConnectionError in the production environment
Unsupported major.minor version 52.0 A memorandum when I got hooked
What to do when a null byte error occurs
I got an error "undefined method` create'" in RSpec
What I learned when building a server in Java
[Docker] When I did docker-compose build, I got an error saying Can not read file. .. [Rails 6.0]
[Ruby on Rails] I get a warning when executing RSpec due to a different gem version.
A story stuck with an error when building Vagrant + Virtulbox CentOS7.8 and creating a shared folder
When trying to insert a specific gem (levenshtein) with Docker, an error occurred without ruby-dev
What to do if you get a "Cannot Pull Container Error" when starting ECS ​​Fargate
I can deploy to heroku, but I get an error and can't open it [Cause: MySQL]