Dynamic Web Module 3.1 requires Java 1.7 or newer in Eclipse
来源:互联网 发布:英雄连2 武器数据 编辑:程序博客网 时间:2024/06/05 18:43
Have you noticed above type of error in yourEclipse? When you’re creating a project with Dynamic Web Module 3.1
support, you should be using Java 1.7 or newer. Please follow below steps to resolve it.
Step1: Make sure your Java Project is configured probably to use Java 1.7.
Right click your project > Properties > Java Compiler and set “Compiler compliance level” to 1.7
Step2: Java Build Path. Click “Edit“. And change it to “Java 7″
Step3: Next from the menu on the left select Project Facets > Java and set its version to 1.7
Extra Tips: If you have maven project try adding below code topom.xml
file.
1
2
3
4
5
6
7
8
9
10
11
12
13
<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>
Alternate Solution:
- Another way is to edit the project facet configuration file itself:
org.eclipse.wst.common.project.facet.core.xml
- Change the dynamic web module version in this line to 3.1 –
<installed facet="jst.web" version="3.0"/>
- And then Maven -> Update Project. You’ll find this file in the .settings directory within the Eclipse project.
Have anything to add to this article? Please chime in and join the conversion
0 0
- How to solve “Dynamic Web Module 3.1 requires Java 1.7 or newer” in Eclipse
- How to solve “Dynamic Web Module 3.1 requires Java 1.7 or newer” in Eclipse
- How to solve “Dynamic Web Module 3.1 requires Java 1.7 or newer” in Eclipse
- Dynamic Web Module 3.1 requires Java 1.7 or newer in Eclipse
- How to solve “Dynamic Web Module 3.1 requires Java 1.7 or newer” in Eclipse
- How to solve “Dynamic Web Module 3.1 requires Java 1.7 or newer” in Eclipse
- How to solve “Dynamic Web Module 3.1 requires Java 1.7 or newer” in Eclipse
- How to solve “Dynamic Web Module 3.1 requires Java 1.7 or newer” in Eclipse
- eclispe Dynamic Web Module 3.1 requires Java 1.7 or newer
- Dynamic Web Module 3.1 requires Java 1.7 or newer
- 解决Dynamic Web Module 3.1 requires Java 1.7 or newer
- 解决Dynamic Web Module 3.1 requires Java 1.7 or newer
- 解决Dynamic Web Module 3.1 requires Java 1.7 or newer
- 解决Dynamic Web Module 3.1 requires Java 1.7 or newer
- Eclipse 用Maven 编译错误 Dynamic Web Module 3.1 requires Java 1.7 or newer
- Spring boot 应用有错误提示:Dynamic Web Module 3.1 requires Java 1.7 or newer.
- Dynamic Web Module 3.1 requires Java 1.7 or newer的解决方案
- marker下报错Type Dynamic Web Module 3.1 requires Java 1.7 or newer.
- phpstorm8.0.3全局默认显示行号
- C++ primer阅读笔记之标准库String类型学习
- Atitit.得到网络邻居列表java php c#.net python
- 【Akka】在并发程序中使用Future
- CentOS7安装mysql-5.7(glibc版)
- Dynamic Web Module 3.1 requires Java 1.7 or newer in Eclipse
- Linux 配置多个Tomcat
- Cacti 备份与迁移
- Android-语言设置流程分析
- 什么是“黑天鹅现象”?
- Android Studio集成crashlytics后无法编译的问题
- 自动填写获取到的短信验证码
- Java继承和多态===Java继承中方法的覆盖和重载
- 学习笔记:HTML DOM(文档对象模型)