I have an issue with NoClassDefFoundError. I am using interfaces, and no class definition should be available:
package code;
public interface Co
Note that there are two different exceptions that sound very similar: ClassNotFoundException and NoClassDefFoundError.
The first exception occurs in the simple case that the JVM looks for "packageB.ClassA" and can't find it in the search path. There are a few other cases, I suspect, but fairly rare.
The second exception occurs mostly when an appropriately-named class file is found, but for some reason it can't be used. There are two primary reasons for this: