I have been attempting to build a java project for about two hours, and I have found multiple resources telling me this and that about what to do to resolve my ClassNotFoundException
exception. None of them are working for me. At first I thought it was an error with how I was exporting my JAR in Eclipse. However, when I tried to run my code in IntelliJ IDEA Community it still would not work.
My code is over 1000 lines, and thus won't work here. What confuses me though is that I only have one file, "KeyStatistics.java". A ClassNotFoundException
exception makes sense if I were trying to access a file by the wrong name, but I only have one file here.
I am using JDK 12, and I built the project in IntelliJ idea after not customizing any of the build settings at all. I would love help because right now my only option looks like dissecting each part of my code and that could take several more hours.
Note: when I was using Eclipse, the project could run perfectly fine (because Eclipse doesn't actually build the project when it runs it).
Edit: here is the entire error:
Error: Could not find or load main class KeyStatistics
Caused by: java.lang.ClassNotFoundException: KeyStatistics