本文介绍了如何让Java EE工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Eclipse的Java EE版本。但是每当我尝试导入Java EE中包含的任何包时,程序都说导入javax.mail无法解析Java EE中包含的所有包都不起作用。

I have the Java EE version of Eclipse. But whenever I try to import any packages contained in Java EE, the program says "import javax.mail cannot be resolved" None of the packages contained in Java EE work.

我错过了什么吗?我假设EE与SE相同,但每次我尝试下载EE时,他们似乎都希望我制作一个glassfish服务器。我真的需要这样做才能让EE工作吗?我根本不关心让玻璃鱼工作。在这一点上,我希望永远不要使用glassfish。

Am I missing something? I assumed EE was the same as SE, but every time I try to download EE they seem to want me to make a glassfish server. Do I really need to do that just to get EE to work? I do not care about getting glassfish to work at all. At this point I hope to never use glassfish.

推荐答案

您需要添加服务器运行时库。服务器运行时库包含所有JavaEE库。
要使其工作,请安装像Glassfish或Tomcat或JBoss等Java EE服务器。
在eclipse中右键单击项目 - >配置BuildPath->单击Libraries->单击Add Library->单击Server Runtime->选择已安装的服务器。

You need to add server runtime libraries.The server runtime libraries have all the JavaEE libraries.To make it work,install a Java EE server like Glassfish or Tomcat or JBoss etc.Right click on your project in eclipse->Configure BuildPath->Click on Libraries->Click on Add Library->Click on Server Runtime->Select the server which you have installed.

这篇关于如何让Java EE工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 16:37