The import javax.ejb cannot be resolved.....help me!
843830Aug 3 2008 — edited Dec 8 2008I 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!