简体   繁体   English

无法从Eclipse 3.6.2导出EAR文件

[英]not possible to export EAR file from Eclipse 3.6.2

I have written some Java code that I need to export into an EAR file. 我编写了一些我需要导出到EAR文件中的Java代码。 I am using Eclipse 3.6.2 I have looked at http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.jst.j2ee.doc.user/topics/tjexpear.html but the problem is that I do not have the export destination "J2EE"--> EAR file in Eclipse. 我正在使用Eclipse 3.6.2我已经查看了http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.jst.j2ee.doc.user/topics/tjexpear.html但问题是我在Eclipse中没有导出目标“J2EE” - > EAR文件。

Also when I go to New--> File --> Other there is not such an option. 当我去New - > File - > Other时,没有这样的选择。 I did add the JAR-file "ejb-api-3.0.jar" to my project though and Eclipse does not give me any errors. 我确实将JAR文件“ejb-api-3.0.jar”添加到我的项目中,Eclipse并没有给我任何错误。

Could you please tell me what I am doing wrong? 你能告诉我我做错了什么吗? Thank you! 谢谢!

Best regards, Peter 最好的问候,彼得

You have to use Eclipse Java EE for making War Files. 您必须使用Eclipse Java EE来制作War Files。 You can also add the required plugins into your existing Eclipse but downloading the Java EE version would be much easier. 您还可以将所需的插件添加到现有的Eclipse中,但下载Java EE版本会更容易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM