0

I have the following problem that appeared suddenly, when I try to run my application.

[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /usr/src/app/dai-security/src/main/java/ai/cyclope/dai/service/MailService.java:[9,41] cannot access org.springframework.mail.javamail.JavaMailSender
  bad class file: /root/.m2/repository/org/springframework/spring-context-support/6.0.0/spring-context-support-6.0.0.jar(org/springframework/mail/javamail/JavaMailSender.class)
    class file has wrong version 61.0, should be 52.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
[INFO] 1 error

I have debugged everything and still nothing.

  • Finally, it is only necessary to fix the stable spring-context version for this problem: ` org.springframework spring-context-support 5.3.23 compile ` – Younes Eddoughmi Nov 18 '22 at 14:06

0 Answers0