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!

The import javax.ejb cannot be resolved.....help me!

843830Aug 3 2008 — edited Dec 8 2008
I have set up eclipse (Version: 3.4.0) and I have installed the J2EE SDK 5 (with java_app_platform_sdk-5_05-windows file).

I have these environment variables:
JAVA_HOME: C:\Sun\SDK\jdk

J2EE_HOME: C:\Sun\SDK

JRE_HOME: C:\Sun\SDK\jdk\jre

CLASSPATH: C:\Sun\SDK\lib\j2ee.jar;
C:\Sun\SDK\jdk\bin;
C:\Java\jre1.6.0_05\lib\ext\QTJava.zip;
C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar

PATH: %JAVA_HOME%\bin;
%J2EE_HOME%\bin;
%JRE_HOME%\bin;
C:\Program Files\SSH Communications Security\SSH Secure Shell;
C:\Program Files\ESTsoft\ALZip

The problem is that when my EJBs are being compiled, I get errors that point to my import statements (here are some examples}:

import javax.naming.*;
import java.rmi.*;
import javax.rmi.*;
import javax.ejb.*;

The error message states "the import javax.ejb cannot be resolved"

As you can see, I have my j2ee.jar in the classpath. Can anyone see what is wrong?

Thank you in advace!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 5 2009
Added on Aug 3 2008
1 comment
7,321 views