一、报错信息:
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文件的路径,自己设置一个。
二、运行HelloWorld时,控制台报错Error:java: 无效的源发行版: 10
是由于本机的JDK版本与项目的语言级别不同造成的,
修改上图中的Project Language Level项,我的jdk为1.8,所以我改Project Language Level项为8开头的。
idea输出HelloWorld报错
最新推荐文章于 2022-03-11 14:35:31 发布