且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将Java EE类导入Eclipse?

更新时间:2022-06-26 07:52:06

下载并安装/解压缩您喜爱的Java EE容器使用Tomcat)

Download and install/unpack your favorite Java EE container (for web applications use Tomcat)

下载并启动Eclipse的Java EE版本

Download and start the Java EE edition of Eclipse

在服务器面板中创建一个新的本地服务器对应于上述Java EE容器。

In the Server panel create a new local server corresponding to the above Java EE container.

使用上面定义的服务器创建一个新的Web - >动态Web项目。根据您的需要将Servlet API级别设置为2.4或2.5。

Create a new "Web -> Dynamic Web Project" using the server defined above. Set the "Servlet API level" to 2.4 or 2.5 depending on your needs.

新项目将可以访问相应的Java EE库。

The new project will have access to the appropriate Java EE libraries.