Borland Enterprise Server 5.0.2 必须要安装:
Borland Enterprise Server 5.0.2 must be installed and setup for JBuilder for this sample to run. If you have not done so, install Borland Enterprise Server 5.0.2. Then in JBuilder, select Tools | Configure Servers..., select the Borland Enterprise Server 5.0.2 node, and point to your installation directory. You will need to restart JBuilder if you have setup Borland Enterprise Server for usage with JBuilder for the first time. If you configured Borland Enterprise Server 5.0.2 prior to opening the sample project, refresh project properties from your server configuration. Click on Project | Project Properties. Click on the Servers tab. Click on the ellipsis (...) button next to the server select in the Single server... drop down list Click <OK> on the Configure Servers dialog Click <OK> on the Project Properties dialog

解决方案 »

  1.   

    http://java.sun.com/j2ee/download.html#tutorial
      

  2.   

    还是有些不明白,不包含EJB包,那怎么编译?又怎么要写成javax.ejb.*??
      

  3.   

    你需要下载J2EESDK1。3。1,然后CLASSPATH指定J2EE。JAR
      

  4.   

    大侠,偶已经指定了J2EE。JAR,还是不对!
      

  5.   

    你有没有把你的j2ee.jar加到你的
    classpath里面?
      

  6.   

    public double A()
    该成public double A()
    如果你用的是jbuilder,那么你要在tools里面的configure libarary 里面假如j2ee.jar方法如下:
    进入后,点new 然后在那么里面输入j2ee
    点add,指向你的j2ee.jar所在的目录,然后在requested libararyes里面加入你刚才新建的j2ee。
    在菜单 的project的default project properties里面的requested libararyes中也假如你刚才建的j2ee,
    然后就可以了。
      

  7.   

    JB下编译是没有问题的,问题是我用命令行编译JAVAC编译时,总出错!