eclipse没有(添加)"Dynamic Web Project"选项的方法
2016-07-25 15:21
459 查看
<转>
第一种方法:
你安装的是专门开发java项目的,而Dynamic Web Project 属于J2EE技术,所以你要专门下载一个集成了J2EE插件的Eclipse,(eclipse-jee-helios-SR2-win32),到eclipse官网下载相对应版本的IDE,
官网下载:http://www.eclipse.org/downloads/
选择:Eclipse IDE for Java EE Developers
第二种方法:
为当前的eclipse安装Java EE开发插件。如下:
For this tutorial I am using Eclipse Kepler(4.3) since it is the latest
version right now but the steps work same for Eclipse Juno(4.2),
Indigo(3.7), Helios(3.6). If you have a version older than Helios then I
would recommend that you upgrade to Kepler since versions older than
Helios are not supported. Here are the steps to download and setup Eclipse.
Start Eclipse and open the New Project Wizard. Currently it would not contain the Web folder and the Dynamic Web Project option.
Click Cancel. In the top Menu bar click on Help -> Install New Software
安装向导被打开。在安装向导的窗口, 点击"Work
With"下拉,根据你的eclipse版本名选择
"http://download.eclipse.org/releases/kepler"(如果你是 Eclipse
Kepler版本)
OR "http://download.eclipse.org/releases/juno"(如果你是 Eclipse Juno版本)
OR "http://download.eclipse.org/releases/indigo"(如果你是 EclipseIndigo版本)
OR "http://download.eclipse.org/releases/helios"(如果你是 Eclipse
Helios版本)
Note: If you do not see above site in the dropdown, you can add it using the add button.
eclipse会搜寻这个网址的所有软件,并且显示到下面的列表(建议使用代理,否则可能要花很长时间显示和下载插件,至于如何设置eclipse代理,请自行google)。
展开 "Web, XML, Java EE and OSGi Enterprise Development" 选项,并且将下面四个选项打上勾:
Eclipse Java EE Developer Tools
Eclipse Java Web Developer Tools
Eclipse Web Developer Tools
Eclipse XML Editors and Tools
然后点击”Next“。
依次点击“Next ”知道你看到 “ Review licences”的窗口。在这个窗口选择 "I accept the terms of the licence agreement" 并且点击“Finish”。
eclipse会开始安装新的软件.
安装完插件之后, Eclipse会要求你重启eclipse,选择“yes”。
重启eclipse之后, 打开新建项目的面板,就可以看到 Web文件夹 和 “Dynamic
Web Project” 选项了。
在eclipse配置tomcat的时候,我发现在Eclipse---Preferences---server---Runtime Environment中,点击“Add”按钮,里面看不到tomcat的,只有个“J2EE Runtime Library”。
解决办法:
Help -> Install New Software
Choose "Luna - http://download.eclipse.org/releases/Luna" site
Expand "Web, XML, and Java EE Development"
Check JST Server Adapters (version 3.2.2) and JST Server Adapters Extentions
安装完后,就能在 Server Runtime Environments的Add按钮中看到tomcat的选项了。
EDIT: With Eclipse 3.7 Indigo Classic, Eclipse Kepler and Luna, the
steps are the same (with appropriate update site) but you need both JST Server Adapters and JST Server Adapters Extentions to get the Server Runtime Environment options.
第一种方法:
你安装的是专门开发java项目的,而Dynamic Web Project 属于J2EE技术,所以你要专门下载一个集成了J2EE插件的Eclipse,(eclipse-jee-helios-SR2-win32),到eclipse官网下载相对应版本的IDE,
官网下载:http://www.eclipse.org/downloads/
选择:Eclipse IDE for Java EE Developers
第二种方法:
为当前的eclipse安装Java EE开发插件。如下:
For this tutorial I am using Eclipse Kepler(4.3) since it is the latest
version right now but the steps work same for Eclipse Juno(4.2),
Indigo(3.7), Helios(3.6). If you have a version older than Helios then I
would recommend that you upgrade to Kepler since versions older than
Helios are not supported. Here are the steps to download and setup Eclipse.
Start Eclipse and open the New Project Wizard. Currently it would not contain the Web folder and the Dynamic Web Project option.
Click Cancel. In the top Menu bar click on Help -> Install New Software
安装向导被打开。在安装向导的窗口, 点击"Work
With"下拉,根据你的eclipse版本名选择
"http://download.eclipse.org/releases/kepler"(如果你是 Eclipse
Kepler版本)
OR "http://download.eclipse.org/releases/juno"(如果你是 Eclipse Juno版本)
OR "http://download.eclipse.org/releases/indigo"(如果你是 EclipseIndigo版本)
OR "http://download.eclipse.org/releases/helios"(如果你是 Eclipse
Helios版本)
Note: If you do not see above site in the dropdown, you can add it using the add button.
eclipse会搜寻这个网址的所有软件,并且显示到下面的列表(建议使用代理,否则可能要花很长时间显示和下载插件,至于如何设置eclipse代理,请自行google)。
展开 "Web, XML, Java EE and OSGi Enterprise Development" 选项,并且将下面四个选项打上勾:
Eclipse Java EE Developer Tools
Eclipse Java Web Developer Tools
Eclipse Web Developer Tools
Eclipse XML Editors and Tools
然后点击”Next“。
依次点击“Next ”知道你看到 “ Review licences”的窗口。在这个窗口选择 "I accept the terms of the licence agreement" 并且点击“Finish”。
eclipse会开始安装新的软件.
安装完插件之后, Eclipse会要求你重启eclipse,选择“yes”。
重启eclipse之后, 打开新建项目的面板,就可以看到 Web文件夹 和 “Dynamic
Web Project” 选项了。
在eclipse配置tomcat的时候,我发现在Eclipse---Preferences---server---Runtime Environment中,点击“Add”按钮,里面看不到tomcat的,只有个“J2EE Runtime Library”。
解决办法:
Help -> Install New Software
Choose "Luna - http://download.eclipse.org/releases/Luna" site
Expand "Web, XML, and Java EE Development"
Check JST Server Adapters (version 3.2.2) and JST Server Adapters Extentions
安装完后,就能在 Server Runtime Environments的Add按钮中看到tomcat的选项了。
EDIT: With Eclipse 3.7 Indigo Classic, Eclipse Kepler and Luna, the
steps are the same (with appropriate update site) but you need both JST Server Adapters and JST Server Adapters Extentions to get the Server Runtime Environment options.
相关文章推荐
- Java 设计模式的学习(含代码),未完待续
- java I/O流——File类的基本用法
- Class类的常见方法示例,记不住,先保存下
- Build RESTful APIs with Spring MVC:Exception
- Build RESTful APIs with Spring MVC: Swagger
- Java利用Math.random()方法随机生成A-Z的字符
- Java提高篇——equals()与hashCode()方法详解
- Java:详解Java中super的几种用法并与this的区别
- java基础四 [构造器和垃圾回收](阅读Head First Java记录)
- 25个让Java程序员更高效的Eclipse插件
- 【Java并发编程】之二十:并发新特性—Lock锁和条件变量(含代码)
- springmvc 异常处理、文件上传以及拦截器相关知识
- java记事本开发
- springmvc参数绑定
- spring事务传播机制实例讲解
- 【Java基础】 设计模式
- springmvc基础知识
- java正则表达式校验移动电话、固话、邮编的校验
- 23种java设计模式之工厂模式
- java线程学习——线程安全(同步)