java.lang.Error: Unresolved compilation problems: RandomShapeGenerator cannot be resolved to a type The method draw() is undefined for the type Shape

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Exception in thread "main" java.lang.Error
    via by Moon Lu,
  • Exception in thread "main" java.lang.Error
    via by Henry Wong,
  • Exception in thread "main" java.lang.Error
    via by Moon Lu,
    • java.lang.Error: Unresolved compilation problems: RandomShapeGenerator cannot be resolved to a type The method draw() is undefined for the type Shape at Shapes.main(Shapes.java:12) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
    No Bugmate found.