nus-cs2113-AY2122S2 / forum

3 stars 2 forks source link

Error: Could not find or load main class Duke Caused by: java.lang.ClassNotFoundException: Duke #17

Open lelerer opened 2 years ago

lelerer commented 2 years ago

I keep getting this error when I try to run Duke.main(). I have already configured the project to be Java 11, any advice would be appreciated! Thanks in advance.

alanlowzies commented 2 years ago

Perhaps you can try rebuilding your project (Build > Rebuild project). (Reference: Stack Overflow)

Another shot in the dark is to double-check that you've set your 'program language level' to 'SDK default' in the project structure settings.

image