must declare a named package eclipse because this compilation unit is associated to the named module

J. Doe :

I just downloaded eclipse for Java Yesterday but when I was trying to get make my first program, I kept on getting this error:

must declare a named package eclipse because this compilation unit is associated to the named module x. 

How do I fix this?

Danh Tran :

Just delete module-info.java at your Project Explorer tab.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=35419&siteId=1