lambda expressions are not supported at this language level intellij
環境:intellij 14.0.2, jdk 1.8
編譯錯誤:lambda expressions are not supported at this language level intellij
操作1:(如果刪除了專案檔案,如.idea .iml, 下次開啟專案需重新配置)
To compile with Java 8 (lambdas etc) in IntelliJ;
-
CTRL + ALT + SHIFT + S
or File / Project Structure -
Open Project tab
-
Set Project SDK to compatible java version (1.8)
-
Set Project language level to 8
-
Open Modules tab
-
Set Language level to 8, click OK
-
CTRL + ALT + S
or File / Settings -
Build, Execution, Deployment / Compiler / Java Compiler
-
Change Target bytecode version to 1.8, click OK
操作2: (一次配置永久生效)
add the following content to pom.xml
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
參考:
http://stackoverflow.com/questions/22703412/java-lambda-expressions-not-supported-at-this-language-level
相關文章
- Java Lambda ExpressionsJavaExpress
- Understand Lambda Expressions in 3 minutes(翻譯)Express
- angular(2+)報錯處理之 -- 關於function 、lambda、not supported等AngularFunction
- 如何解決 case expressions must be constant expressionsExpress
- Caused by: java.lang.IllegalStateException: Only single-level inheritance supported: XxxxServiceJavaException
- Expressions v1.3.6Express
- Using Regular Expressions in Oracle DatabaseExpressOracleDatabase
- 記一次Intellij-IDEA配置JDK1.8,支援Lambda新特性IntelliJIdeaJDK
- 解決The given version [xx] is not supported, only version 1 to 10 is supported in this buildUI
- 第五課第一週程式設計作業assignment-Dinosaurus+Island+--+Character+level+language+model+final程式設計
- Spring Security 表示式(Expressions) - hasRole示例SpringExpress
- PyCharm使用技巧(六):Regullar Expressions的使用PyCharmExpress
- Regular Expressions in Grep Command with 10 Examples --referenceExpress
- Level Up
- MEMORY_TARGET not supported on this system
- GoldenGate - What is supported and what is not ....Go
- PCRE Perl Compatible Regular Expressions LearningExpress
- let definitions are not supported by current javascript versionJavaScript
- Project facet Java version 1.8 is not supportedProjectJava
- The ENU localization is not supported by this SQL Server mediaSQLServer
- KSQLException: The authentication type 10 is not supported.SQLException
- POJ-2106 Boolean Expressions-!||&計算BooleanExpress
- 記一次kafka的high level和low levelKafka
- natas(level0-level14)通關詳細指南(一)
- transaction-level or statement-level consistency; check constraintsAI
- CSS LEVEL4CSS
- Oracle level偽列Oracle
- Oracle statistic_levelOracle
- E. Level Up
- The Go Programming LanguageGo
- the java programming languageJava
- 解決 Lumen 中 client charset is not supportedclient
- MEMORY_TARGET not supported on this system for linuxLinux
- Project facet Java version 1.7 is not supported.ProjectJava
- System.Data.SqlClient is not supported on this platform.SQLclientPlatform
- jstl c標籤 ”test does not support runtime expressions“JSExpress
- Lode Runner 2 Credits Level
- Java Lambda StreamJava