连续获取java:无效源版本:编译时出错1.9 [英] Continuously getting the java: invalid source release: 1.9 error when compiling

查看:172
本文介绍了连续获取java:无效源版本:编译时出错1.9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用此网站上的各种论坛解决此问题,但没有任何帮助。我尝试过用于修复其他人的1.8错误的类似技术,但没有任何效果。我的源文件夹下有我的java类文件,没有导入,我只是想要一个基本的输出消息,以确保intelliJ正常工作。任何人都可以提供任何建议吗?

I have attempted to fix this problem using the various forums on this site, but nothing has helped. I tried similar techniques as used to fix other people's 1.8 errors, but nothing has worked. I have my java class file under my source folder and no imports, I just simply want a basic output message to make sure intelliJ is working as it should. Can anyone offer any advice?

推荐答案

这里将语言级别更改为1.8或更低。这会更改目标发行版本。

Here change the language level to 1.8 or lesser. This changes the target release version.


转到文件 - >设置 - >构建执行和部署 - > Java - >编译器

Go to file -> settings -> Build Execution and Deployment -> Java -> Compiler

这里将语言级别更改为1.8或更低。这会更改源版本。

Here change the language level to 1.8 or lesser. This changes the source release version.


文件 - >项目结构 - >模块设置 - >标签:来源:语言
等级

File -> Project Structure -> Module Settings -> Tab: Source: Language Level

此处,


档案 - >项目结构 - >项目(在左窗格中) - >项目语言级别

File -> Project Structure -> Project(In left pane) -> Project language level

这篇关于连续获取java:无效源版本:编译时出错1.9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆