Ivan Gerasimenko Ivan Gerasimenko -4 years ago 220
Java Question

Why intelij does not recognize java project?

I was working in one project then created new one and after opening the old one it is not recognized as java project. There is no option to create class in package (as you see on the pic), empty middle packages are not hidden but this option is set on.

no Java Class item

Why intelij-idea does not recognize java project?

Answer Source

Your project is fine. Your directory structure does not follow the common /src/main/java convention and you need to mark your directories manually.

In this case, you need to right-click on your directory and perform "Mark Directory As Sources Root"

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download