I'm having a issue where no matter what compiler I use, it builds the program but errors out with:
Error: Could not find or load main class com.company.Main Caused by: java.lang.ClassNotFoundException: com.company.Main Process finished with exit code 1
I was told its my CPU can't cope with java, anyone got any solutions?
(P.S. I am using IntelliJ Community Edition.)
java --version (cause someone asked) Unrecognized option: --version Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
P.S: I am running Windows 11 64bit on a Intel Core i5 6200u on 12gb of RAM.