Compiler Error J0044

Cannot find definition for class 'identifier'

The compiler could not locate the definition for the specified class. This error is usually caused by a typographical error. It can also occur when the package containing the specified class cannot be found.

The following example illustrates this error:

class NotSimple{
   //do something here
}

public class Simple {
   
   NotSimple smp = new NotSmple();
   // error: 'NotSmple' not a valid class name
   
}