module-info.java treated as package-info.java

There is not much more to this problem the title pretty much explains it. I have made the module-info.java file in src/main/java and it is being recognized as a package-info.java which is not what I want. Am I doing something wrong?
21 Replies
JavaBot
JavaBot2y ago
This post has been reserved for your question.
Hey @nikcho-kouhai! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Kyo-chan
Kyo-chan2y ago
First I'd like to know how do you know that
nikcho-kouhai
nikcho-kouhaiOP2y ago
actually my bad it simply recognizes it as a .java file and I know it because I cannot use any keywords
nikcho-kouhai
nikcho-kouhaiOP2y ago
No description
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nikcho-kouhai
nikcho-kouhaiOP2y ago
I have to set a java version in my pom.xml?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nikcho-kouhai
nikcho-kouhaiOP2y ago
yeah but the IDE doesn't even recognize module as a keyword
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nikcho-kouhai
nikcho-kouhaiOP2y ago
how do I define a java version in the pom.xml? also I'm pretty sure in my project structure I have it set to java 17 but let me check
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nikcho-kouhai
nikcho-kouhaiOP2y ago
No description
nikcho-kouhai
nikcho-kouhaiOP2y ago
balls
nikcho-kouhai
nikcho-kouhaiOP2y ago
you my saving grace man
No description
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nikcho-kouhai
nikcho-kouhaiOP2y ago
1.8? isn't that like giga old or is that just 8
No description
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nikcho-kouhai
nikcho-kouhaiOP2y ago
sounds reasonable. Thanks again man!
JavaBot
JavaBot2y ago
If you are finished with your post, please close it. If you are not, please ignore this message. Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
nikcho-kouhai
nikcho-kouhaiOP2y ago
been stuck on this for like a day and a half
JavaBot
JavaBot2y ago
Post Closed
This post has been closed by <@359755548973072397>.
Want results from more Discord servers?
Add your server