![](/img/trans.png)
[英]Getting error when running maven project second time in eclipse ide
[英]Getting an compillation error while running java maven project in the eclipse IDE
C:\\ Users \\ SAYAN \\ Desktop \\ block-ch \\ project \\ khs-blockchain-java-example-master \\ src \\ main \\ java \\ simple \\ chain \\ Block.java:[51,29]錯誤:lambda表達式不是在源1.5中受支持
我已經安裝了jdk 1.8。 我仍然收到此錯誤。 需要幫忙!!!
我做到了。 這將起作用。
In the pom.xml we need to add
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
或者在您的pom.xml中使用以下內容
<java.version>1.8</java.version>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.