I am trying to create a helper class in java and when I am trying to
import javax.ejb.*, it gives me the above error
This is my code:
import java.util.*;
import java.rmi.*;
import javax.naming.*;
import javax.ejb.*; <-- The import javax.ejb cannot be resolved
public class MyJndi
{
...
}
Any help would be much appreciated.
Thanks
Add a variable to your build path (libraries tab)
Variable Name: WAS_PLUGINDIR
Path Extension: lib/j2ee.jar
This will resolve the reference. You may need lib/ejbcontainer.jar for JNDI lookups.
Regards
Chris
Thanks Chris,
this resolved error for me also, referred j2ee.jar file installed
with j2eesdk-1_4_01-windows.exe.
Thanks again,
Sonali.