[Solved] Problems in IntelliJ since version 2022.1 / java.lang.NoClassDefFoundError

We Are Going To Discuss About Problems in IntelliJ since version 2022.1 / java.lang.NoClassDefFoundError. So lets Start this Java Article.

Problems in IntelliJ since version 2022.1 / java.lang.NoClassDefFoundError

  1. [Solved] Problems in IntelliJ since version 2022.1 / java.lang.NoClassDefFoundError

    I upgraded to Intellij 2022.1 and encountered this issue when trying to sync the old gradles projects that used to work for me :

  2. Problems in IntelliJ since version 2022.1 / java.lang.NoClassDefFoundError

    I upgraded to Intellij 2022.1 and encountered this issue when trying to sync the old gradles projects that used to work for me :

Solution 1

I found that Scala plugin was not updated and updating it to at least version 2022.1.13 fixed it for me.

Original Author Gen Of This Content

Solution 2

I upgraded to Intellij 2022.1 and encountered this issue when trying to sync the old gradles projects that used to work for me :

Caused by: java.lang.NoClassDefFoundError: org/gradle/internal/impldep/com/google/common/collect/Lists

Cleaning the caches folder’s content (Gradle_HOME/caches) resolved this issue for me

Make sure to also check that the SDK is correctly configured for your project (Java 17 by default) and the Gradle home is well specified in the Settings>Gradle section.

For info, I’m using Java 8 and Gradle 5.5.1 (yes I know :))

Original Author Alioune Of This Content

Solution 3

I had the same problem after upgrading to Intellij 2022.1

For me, the fix came from Gen’s answer. I also had an old Scala plugin, and just removed it as I’m not using it anymore.

If you are looking to upgrade it, go to File -> Settings -> Plugins. From there just hit Upgrade for the plugins you want. After that restart the IDE.

Original Author Radu Tamas Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

Siddharth

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment