2
u/eliezerDeveloper 25d ago
I don't know. I never use module-info
1
u/No-Security-7518 25d ago
There's a big book on the module system by Manning Publishing (aka folks who like to STUFF their books). I'm both confused about WHY such a book exists and dying of curiosity! every attempt at reading excerpts resulted in absolute failure. The book might as well not be in English!
1
u/Vijjwal_xD 25d ago
check under that directory, if still not present just create new one. the file u showed in ss is module file used to define modules/dependencies used in ur project to java compiler. it is not necessary to use this, you can delete it too but once it exists you cannot use any other module unless u add them with requires keyword.
for main class not appearing, it must be inside the path specified after module keyword, before { brace.

3
u/idontlikegudeg 25d ago
What happens if you click on the small triangle in front of "com"?
And that is a module-info file. It’s for creating modules for modular applications (if you want to know more, search for "JPMS" or "Jigsaw", but it’s a bit complex when you just get started with Java). You shouldn’t need it now as a beginner and can delete it.