×

Loading...
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。

You should include j2ee.jar .

You can find a J2ee-api-implemented jar from the library directory of J2EE SDK or any J2EE container. For Jboss, it's jboss-j2ee.jar under %JBoss_HOME%/client/.

In addition, Eclipse is not only an editor to compose your codes and compile them. It's a flexible framework, which enables developers to setup customized development and debugging enviroment using plug-in mechanism.At this point, J2EE developers usually like to plug in a Jboss, then they can run and moniter their j2ee web applications inside Eclipse, that's supposed to be the most exciting thing for Java developers( yeah, it's also free!).
Report

Replies, comments and Discussions:

  • 工作学习 / IT技术讨论 / download了Eclipse.并配置了jdk路径等程序中出现与j2ee 相关的内容如javax.ejb.SessionBean;...就会出现编译错误.
    估计是J2EEpackage为被包含在classpath中.但问题是对于J2EE, SUN只给出了specification,它的实现是由具体的application server实现是否在Eclipse的机器上必须安装一个application server? 那么这个server的implementation 又会在哪个别.jar文件中?
    • You should include j2ee.jar .
      You can find a J2ee-api-implemented jar from the library directory of J2EE SDK or any J2EE container. For Jboss, it's jboss-j2ee.jar under %JBoss_HOME%/client/.

      In addition, Eclipse is not only an editor to compose your codes and compile them. It's a flexible framework, which enables developers to setup customized development and debugging enviroment using plug-in mechanism.At this point, J2EE developers usually like to plug in a Jboss, then they can run and moniter their j2ee web applications inside Eclipse, that's supposed to be the most exciting thing for Java developers( yeah, it's also free!).
      • 多谢.在preferences-->java-->classpath variables中配置了不起作用为什么? 另外各种server的j2ee implemented jar 具体是什么是不是要查文档资料?
        • 1. It should work, if it doesn't , you may try to configure from "Project->Properties"
          2.You don't have to spend time on that, but I suggest it should be a good idea to include the j2ee jar from the J2EE container you might plug in.