Menu

java.lang.NoClassDefFoundError

When we import a Java class in a Java project we sometimes face NoClassDefFoundError and that import is not getting resolved. If you are using IntelliJ IDE then you could resolve this issue by going to the following setting option.

Run >> Edit Configurations >> Click on Modify options >> select Include dependencies with "Provided scope" OR "Add dependencies with "Provided" scope to classpath"

No comments:

Post a Comment