Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

compiling an java file containing an EJB package in JCreator

eve2Oct 20 2005 — edited Oct 21 2005
Hello, 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 18 2005
Added on Oct 20 2005
2 comments
125 views