ClassNotFound Exception
Hello,
I'm not sure why I am getting a ClassNotFound exception for this.
I've created a Run configuration and specified the modules and where the main class is but it still can't find it.
The same configuration works fine in Eclipse.
Please see the error and my config
"C:\Program Files\Java\jdk1.8.0_162\bin\java.exe" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2018.1.1\lib\idea_rt.jar=51337:C:\Program Files\JetBrains\IntelliJ IDEA 2018.1.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 2018.1.1\lib\idea_rt.jar" com.intellij.rt.execution.CommandLineWrapper C:\Users\ltn.QC\AppData\Local\Temp\idea_classpath Gui.Basic.StartUp -r -t 0x531 -n LTN -c Screen/project
Exception in thread "main" java.lang.ClassNotFoundException: Gui.Basic.StartUp
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at com.intellij.rt.execution.CommandLineWrapper.loadMainClassWithCustomLoader(CommandLineWrapper.java:195)
at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:49)

Please sign in to leave a comment.
Please see http://stackoverflow.com/a/42660624/104891.
Nevermind. I switched the compiler to Eclipse and its working now. StackOverFlow post didn't help me at all. But thank you though.
With Build, no error check option in Before launch your class may not be compiled at all if some other class has an error and compilation stops on that error. Eclipse compiler behaves differently and may continue building other classes if there are errors. javac would normally stop compiling.