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.