Categories
Spring

Fix: Errors occurred during the build.Errors running builder ‘Maven Project Builder’

If you encounter error “Errors occurred during the build.Errors running builder ‘Maven Project Builder’ on project ‘springbootdemo’.Could not initialize class org.codehaus.plexus.archiver.jar.JarArchiver” while running project in Spring tool, select the proper JDK. I my case it is fixed by selecting JDK 13.

Click on Project folder -> Run As -> Run Configuration

Go to JRE tab -> Alternate JRE -> Select installed JREs

Now, Run the project.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.