Intellij IDEA JDK编译设置
来源:互联网 发布:看图王软件下载 编辑:程序博客网 时间:2024/05/21 18:34
Intellij IDEA加载多项目时因为不同JDK,经常出现JDK编译版本的问题,容易出现以下异常。
一、异常信息:
Information:Using javac 1.8.0_91 to compile java sourcesInformation:java: javacTask: 源发行版 1.8 需要目标发行版 1.8Information:java: Errors occurred while compiling module 'spring-context'Information:Module "spring-context" was fully rebuilt due to project configuration/dependencies changesInformation:2016/12/1 14:41 - Compilation completed with 1 error and 0 warnings in 12s 125msError:java: Compilation failed: internal java compiler error
二、处理方法:
1. 修改 “Language level” 和 “Module SDK”
选择 File --> project Structure --> Modules,选择项目修改 “Sources” 选项卡下的 “Language level” 及 “Dependencies”选项卡下的 “Module SDK” 。
2. 修改Java Compiler
File --> Settings --> Build,Execution,Deployment --> Compiler --> java Compiler
阅读全文
0 0
- Intellij IDEA JDK编译设置
- Intellij idea设置jdk
- IntelliJ IDEA设置JDK
- 【Intellij IDEA】设置 jdk 版本
- Intellij Idea下tomcat设置自动编译
- Intellij IDEA设置(三)设置Tomcat和配置JDK
- IntelliJ IDEA JDK配置
- Intellij IDEA配置JDK
- Intellij idea 配置JDK
- IntelliJ IDEA jdk配置
- intellij idea配置jdk
- IntelliJ Idea配置JDK
- IntelliJ IDEA 配置JDK
- IntelliJ idea添加jdk
- intellij idea 设置项目more的jdk和编码格式
- intelliJ IDEA之jdk、maven、UTF-8、Tomcat设置
- Intellij Idea编译失败
- Intellij IDEA 编译错误
- [Java之七]线程(1)
- javascript switch循环
- python assert简述
- Android Studio 开发错误 Installation failed with message INSTALL_FAILED_SHARED_USER_INCOMPATIBLE
- oracle开发系列(一)让人抓狂的错误之null值与无值(无结果)
- Intellij IDEA JDK编译设置
- 近期
- PHP开发 php-cgi not found
- time 函数
- BOOST库 之 智能指针的类型转换 (基类 与 子类之间智能指针的转换)(未完成)
- 路由器上网设置
- hadoop配置
- 图片加载的第三方库Glide与Picasso
- C++学习(60)