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!

cannot access javax.ejb.EJBObject

843829Feb 2 2004 — edited Feb 4 2004
I cannot access javax.ejb.EJBObject
This is my java environment .
- jsdk 1.3
- j2ee 1.4
I set classpath for jsdk1.3 and set classpath for j2ee 1.4. I will think classpath for jsdk no problem.
But a classpath for j2ee is a problem Because "I can't import javax.ejb.EJBObject" for ejb.
I am installing j2ee home direcoty to C:\Sun\AppServer and set classpath to
C:\Sun\AppServer\lib\j2ee.jar. That's right!, I will think ,I set classpath for j2ee.
I don't know this is an error.

---------- Javac *.java ----------
C:\Mytest\ejbmail\SendmailEjbObject.java:1: cannot access javax.ejb.EJBObject
bad class file: C:\Sun\AppServer\lib\j2ee.jar(javax/ejb/EJBObject.class)
class file has wrong version 48.0, should be 47.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
import javax.ejb.EJBObject;
^
Can anybody help me?
Thank you.


Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 3 2004
Added on Feb 2 2004
2 comments
609 views