一、报错信息:
Cannot start compilation: the output path is not specified for module “idea test”.
Specify the output path in the Project Structure dialog.
Module idea_test: invalid item ‘< 11 >’ in the dependencies list
主要原因是没有给编译的.class设置存放路径。
file>project structure在此框中找到自己要存放class文件的路径,自己设置一个。
idea输出HelloWorld报错
二、运行HelloWorld时,控制台报错Error:java: 无效的源发行版: 10
是由于本机的JDK版本与项目的语言级别不同造成的,
修改上图中的Project Language Level项,我的jdk为1.8,所以我改Project Language Level项为8开头的。
idea输出HelloWorld报错

相关文章:

  • 2022-01-09
  • 2021-09-19
  • 2022-01-29
  • 2021-06-11
  • 2021-07-20
猜你喜欢
  • 2021-10-16
  • 2021-10-11
  • 2021-10-04
  • 2021-11-17
  • 2021-08-04
  • 2021-04-04
相关资源
相似解决方案