idea找不到导入的包和类,intelij idea: Exception in thread "main" java.lang.ClassNotFoundException
2017-03-24 15:04
507 查看
在project structure对话框,module的设置里,paths那一项,把输出的位置设置好,估计关键是那个文件夹要存在吧?我为了统一管理输出,在project设置里,project compiler output下设置了一个绝对路径的文件夹,已经存在的文件夹,然后再module的设置的paths里,输出那一项,选择继承,即inherit project compile
output path。然后如下清除缓存,重启idea
解决方案: 如下两步
output path。然后如下清除缓存,重启idea
解决方案: 如下两步
相关文章推荐
- IntelliJ IDEA Exception in thread "main" java.lang.ClassNotFoundException
- IDEA 14.1.3-import之前的scala项目报错:Exception in thread "main" java.lang.ClassNotFoundException: kmust.hj
- IDEA 14.1.3-import之前的scala项目报错:Exception in thread "main" java.lang.ClassNotFoundException: kmust.hj
- 使用IDEA时遇到问题:Exception in thread "main" java.lang.ClassNotFoundException:
- intelij idea: Exception in thread "main" java.lang.ClassNotFoundException
- Exception in thread "main" java.lang.ClassNotFoundException: xxxx
- Exception in thread "main" java.lang.ClassNotFoundException: 解决方法
- 异常:Exception in thread "main" java.lang.ClassNotFoundException: Student
- Exception in thread "main" java.lang.ClassNotFoundException
- Exception in thread "main" java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
- Android错误:项目导入时,出现Exception in thread "main" java.lang.NoClassDef、Could not write file 。。。.classpath
- Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class org.fusesource
- Exception in thread "main" java.lang.IncompatibleClassChangeError: Found class com.squareup.okhttp.C
- Exception in thread "main" java.lang.IncompatibleClassChangeError: Found interface com.mysql.jdbc.Co
- idea中使用scala运行spark出现Exception in thread "main" java.lang.NoClassDefFoundError: scala/collection/GenTraversableOnce$class
- HIVE Exception in thread "main" java.lang.IncompatibleClassChangeError: Found class jline.Terminal,
- IDEA java编译中出现了Exception in thread “main" java.lang.UnsupportedClassVersionError
- idea中使用scala运行spark出现Exception in thread "main" java.lang.NoClassDefFoundError: scala/collection/GenTraversableOnce$class
- Exception in thread "main" java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop
- Exception in thread "main" java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but i