Now, (IMPORTANT STEP) open the class containing your main method. Seemed to work for me when just out, and expecting IntelliJ to make the folder wouldn't.Īlso try having IntelliJ make you a new run configuration: Invalidate cache and restart your intellij, it worked for me.Įxplicitly creating an out folder and then setting the output path to C:\Users\USERNAME\IdeaProjects\PROJECTNAME\out idea folder then reopened Intellij and follow the steps above.
#Could not find or load main class intellij full
Instead I updated it to have a full path e.g. Before I was using just 'target' for the Project compiler output.
#Could not find or load main class intellij code
The following piece of code keeps does not even compile and keeps giving me the error: Error: Could not find or load main class libTest Code import import import import java.util.* class book I'm a beginner in Java and am trying to run my code using IntelliJ that I just installed as my IDE with JDK 1.7.