Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ could not initialize class org.jetbrains.jps.builders.JpsBuildBundle

I'm using IntelliJ for a Spring Boot application made with the Spring Boot Initializr. Added are two dependency's: Spring Web and REST Repositories. Now that I try to build the main class, I get an error saying:

Could not initialize class org.jetbrains.jps.builders.JpsBuildBundle

The configuration is the one given by IntelliJ and I tried updating my JDK to version 16 but sadly it didn't work.

Also I'm working on a MacBook Pro with the M1 chip (don't know if it could have anything to do with the problem, but couldn't hurt mentioning it).

like image 927
Kevin Kentie Avatar asked Mar 23 '21 20:03

Kevin Kentie


Video Answer


3 Answers

I had the same issue when trying to build freshly created Spring initializr project with java version 16.

Didn't want to reinstall idea (since other projects worked just fine).

Solution to fix that was to change back to java 15 (in pom.xml and project structure(project SDK, modules))

Intellij details

IntelliJ IDEA 2020.3.1 (Ultimate Edition)
Build #IU-203.6682.168

like image 100
waeewoae Avatar answered Oct 13 '22 04:10

waeewoae


Got a simple solution, just uninstalled and installed again the Idea.

like image 38
Pedro Henrique Avatar answered Oct 13 '22 04:10

Pedro Henrique


I'm using IntelliJ IDEA and These are the steps that helped me:

  1. Click on file in the upper left corner
  2. Click on Project Structure and a new window will be opened enter image description here
  3. Then change your version from 16 to 15 or try some other versions and see what works out for you.
like image 2
Cyebukayire Avatar answered Oct 13 '22 03:10

Cyebukayire