I got a ClassNotFoundException or NoClassDefFoundError. How can I fix it?
The most likely explanation is that you have a problem in your dependencies. In order for a class in one module to reference a class/interface defined in another module, the following must be true: • The class/interface being referenced must be visible to the code using it, according to the normal Java visibility rules. This typically means that the class must be public, since package-private access across modules is impossible. • The package containing the class/interface must be exported (marked as providing an API visible to other modules). To “export” package, right click project, select Properties -> API Versioning and choose either public or friend export type. • The module containing the code which uses this class/interface must declare a dependency on the module which provides it. These rules are pretty straightforward and it is easy in most cases to verify that dependencies are set up correctly. If you receive a ClassNotFoundException or NoClassDefFoundError at runtime, the st