将Java项目转换为动态Web项目 [英] Converting a Java Project to a Dynamic Web Project

查看:146
本文介绍了将Java项目转换为动态Web项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Eclipse Ganymede来创建一个Web应用程序,但该项目目前只是一个标准的Java项目。我想把它转换成一个动态Web项目,我需要一个这样做。



我已经给了我关于编辑.project文件的建议,但是当我重新启动Eclipse它拒绝打开项目声称该文件已损坏。



任何建议?

解决方案

好。我会告诉你为什么,人们。这是因为很多这些指南错过了一些基本的东西。


  1. 是的,您需要更改.project文件以添加一些缺少的性质和构建者(创建一个新的动态Web项目并检查创建的.project文件以查看缺少的内容。)


  2. 您还需要添加内容的.settings文件夹。它将丢失两个或三个文件,其中一个是一个关键的xml文件。他们都需要了解你给出的新特性。


/ p>

I'm using Eclipse Ganymede to create a web application, but the project's currently just a standard Java project. I want to convert it to a Dynamic Web Project and I need a hand in doing that.

I've had suggestions given to me about editing the .project file, but when I restart Eclipse it refuses to open the project claiming the file is corrupt. There's also no facet management options in the project properties.

Any suggestions?

解决方案

Well. I'll tell you why, folks. It's because a lot of these guides miss out some fundamental things.

  1. Yes, you need to change the .project file to add some missing natures and builders (create a new Dynamic Web Project and examine the created .project file to see what's missing).

  2. You also need to add things to the .settings folder. It'll be missing two or three files, one of which is a key xml file. They're all required for it to understand the new natures you've given it.

Huzzah for computers.

这篇关于将Java项目转换为动态Web项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆