compiling an java file containing an EJB package in JCreator
eve2Oct 20 2005 — edited Oct 21 2005Hello, I am trying to compile the following files step by step. But the compiler in my JCreator keeps saying:
'C:\Sun\AppServer\domains\domain1\autodeploy\usingj2ee.hello\src\HelloWorldSessionImpl.java:5: package javax.ejb does not exist
import javax.ejb.*;
^
C:\Sun\AppServer\domains\domain1\autodeploy\usingj2ee.hello\src\HelloWorldSessionImpl.java:9: cannot find symbol
symbol: class SessionBean
public class HelloWorldSessionImpl implements SessionBean
^
C:\Sun\AppServer\domains\domain1\autodeploy\usingj2ee.hello\src\HelloWorldSessionImpl.java:17: cannot find symbol
symbol : class SessionContext
location: class usingj2ee.hello.HelloWorldSessionImpl
private SessionContext context;
^
C:\Sun\AppServer\domains\domain1\autodeploy\usingj2ee.hello\src\HelloWorldSessionImpl.java:27: cannot find symbol
symbol : class SessionContext
location: class usingj2ee.hello.HelloWorldSessionImpl
public void setSessionContext(SessionContext aContext)
^
C:\Sun\AppServer\domains\domain1\autodeploy\usingj2ee.hello\src\HelloWorldSessionImpl.java:36: cannot find symbol
symbol : class CreateException
location: class usingj2ee.hello.HelloWorldSessionImpl
throws CreateException
^
C:\Sun\AppServer\domains\domain1\autodeploy\usingj2ee.hello\src\HelloWorldSessionImpl.java:45: cannot find symbol
symbol : class CreateException
location: class usingj2ee.hello.HelloWorldSessionImpl
throws CreateException
^
6 errors
Process completed.'
How do I make it see the EJB package.
Could some one help, please.
eve