Error
Could not find or load main class in IntelliJ IDE 2020.1.3
Solution
Step 1
Right-click on the source folder
- src (Normal Java projects)
- java ( Java Maven project)
- scala (Scala Maven projects)
Step 2
Select Mark Directory As
Step 3
Select Sources Root
Hope this post helps you to solve your problem.
Thank you so much for sharing this amazing information
ReplyDeleteIntelliJ IDEA