日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程语言 > java >内容正文

java

Dynamic Web Module 3.0 requires Java 1.6 or newer.

發(fā)布時(shí)間:2025/3/14 java 20 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Dynamic Web Module 3.0 requires Java 1.6 or newer. 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

查看 Java Build Path

JRE System Libaray [J2SE-1.4]

問題如上,解決方法是提高版本。

問題引起原因:

使用maven 時(shí),pom.xml 指定的source 和 target 不存在時(shí),則默認(rèn)最低版本。

現(xiàn)場:

case1

pom.xml

<!-- build --><build><finalName>${project.artifactId}</finalName><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><encoding>UTF-8</encoding></configuration></plugin>

case2:

> Java Build Path

> JRE System Libaray [J2SE-1.4]

case3:

Java Compiler 1.7

Java Installed JREs jdk1.7.x

Apache Tomcat v7.0

處理方案

降低source 與 target

or

升級(jí)jdk

備注:

如需修改pom.xml 文件,則應(yīng) update maven project 。 坐等?Validating xxx:(0%)

?

附:

pom.xml 文件中的插件

官方網(wǎng)站使用說明:http://maven.apache.org/plugins/maven-compiler-plugin/usage.html

官方網(wǎng)站使用說明:http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html

?

For example, if you want to enable assertions (-source 1.4) and also want the compiled classes to be compatible with JVM 1.4 (-target 1.4), you can then put:

<project>[...]<build>[...]<plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.2</version><configuration><source>1.4</source><target>1.4</target></configuration></plugin></plugins>[...]</build>[...] </project>

?

轉(zhuǎn)載于:https://www.cnblogs.com/zno2/p/4496474.html

總結(jié)

以上是生活随笔為你收集整理的Dynamic Web Module 3.0 requires Java 1.6 or newer.的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。