Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 716
Ivan Gerasimenko Avatar asked Oct 16 '25 19:10

Ivan Gerasimenko


1 Answers

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"

like image 142
Grzegorz Piwowarek Avatar answered Oct 18 '25 07:10

Grzegorz Piwowarek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!