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


Solutions on the web5

Solution icon of coderanch
via Coderanch by Moon Lu, 1 year ago
Unresolved compilation problems: RandomShapeGenerator cannot be resolved to a type The method draw() is undefined for the type Shape

Solution icon of coderanch
via Coderanch by Moon Lu, 1 year ago
Unresolved compilation problems: RandomShapeGenerator cannot be resolved to a type The method draw() is undefined for the type Shape

Solution icon of web
Unresolved compilation problems: RandomShapeGenerator cannot be resolved to a type The method draw() is undefined for the type Shape

Solution icon of coderanch
via Coderanch by Henry Wong, 1 year ago
Unresolved compilation problems: RandomShapeGenerator cannot be resolved to a type The method draw() is undefined for the type Shape

Solution icon of web
Unresolved compilation problems: RandomShapeGenerator cannot be resolved to a type The method draw() is undefined for the type Shape

Stack trace

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)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.