Dynamic Web Module 3.0 requires Java 1.6 or newer
2016-01-26 19:32
423 查看
问题描述
![](http://images2015.cnblogs.com/blog/507321/201601/507321-20160126193136176-27354772.png)
问题解决
首先检查编辑器是否已经设置为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.xml中添加如下配置:
<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>
最后,更新工程:
right click on your project > Maven > Update Project…
要点摘自:http://qussay.com/2013/09/13/solving-dynamic-web-module-3-0-requires-java-1-6-or-newer-in-maven-projects/
相关文章推荐
- MR-2.输入格式(InputFormat)TextInputFormat和SequenceFileInputFormat源码分析
- android 不能在子线程中更新ui的讨论和分析
- UE4 main classes explanation
- UI_UIImageView 基本操作
- zoj 3911 Prime Query 第一发线段树
- LeetCode Question Difficulty Distribution
- 【转】android UI进阶之自定义组合控件
- JS ueditor编辑器
- phpQuery采集乱码问题解决方案
- 二:UIKit与Quartz 2D绘图技术学习
- 整合UEditor,SSH下
- not-null property references a null or transient value:
- X-Requested-With
- 下拉刷新时UITableView的section headerView冲突的解决
- 设备管理,连接两个数据库,用的easygui
- 如何创建UIlabel,使label的高度随着内容的多少而变动并且可以设置行间距?
- NSString, char, NSData,UIImage相互转化
- virt-install Guest name 'test' is already in use解决办法
- iOS 瀑布流的简单实现 UICollectionView
- Android Bluetooth笔记