Menu

Showing posts with label Java Import Error. Show all posts
Showing posts with label Java Import Error. Show all posts

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"