你的位置:首页 > 软件开发 > Java > Dynamic Web Module 3.0 requires Java 1.6 or newer

Dynamic Web Module 3.0 requires Java 1.6 or newer

发布时间:2016-01-26 20:02:15
问题描述 问题解决 首先检查编辑器是否已经设置为1.7: Right click your project > Properties > Java Compiler and set “Compiler compliance level” to 1.7 然后,检 ...

Dynamic Web Module 3.0 requires Java 1.6 or newer

问题描述

Dynamic Web Module 3.0 requires Java 1.6 or newer

问题解决

首先检查编辑器是否已经设置为1.7:

Right click your project > Properties > Java Compiler and set “Compiler compliance level” to 1.7

然后,检查Project Facts:

Next from the menu on the left select Project Facets > Java and set its version to 1.7;

如果还没有添加jdk1.7,则需要先添加:

Navigate to eclipse Preferences > Java > Installed JREs, click Add, and locate your installed Java path.

对maven项目,在pom.

<build>  <plugins>    <plugin>    <groupId>org.apache.maven.plugins</groupId>    <artifactId>maven-compiler-plugin</artifactId>    <version>3.1</version>    <configuration>      <source>1.7</source>      <target>1.7</target>    </configuration>  </plugin>  </plugins></build>

 

海外公司注册、海外银行开户、跨境平台代入驻、VAT、EPR等知识和在线办理:https://www.xlkjsw.com

原标题:Dynamic Web Module 3.0 requires Java 1.6 or newer

关键词:JAVA

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。