Skip to content

IntelliJ IDEA Exception in thread "main" java.lang.ClassNotFoundException

🏷️ IntelliJ IDEA

新建了一个工程,编译没错,执行时提示如下错误:

Exception in thread "main" java.lang.ClassNotFoundException

最后发现是项目结构(Project Structure)=> Modules => Paths 里 Use modules compile output path 路径设置的不对.