[Logo]
Forums Register Login
I m new to EJB. Need a little help for EJB compilation.
I m getting the error 'package javax.ejb.* not found.' every time I tried to compile EJB program. Please help me with this issue.
 
Arslan Khan wrote:I m getting the error 'package javax.ejb.*; not found.' every time I tried to compile EJB program. Please help me with this issue.


Which EJB container are you using? you should add a CLASSPATH entry which points to the implementation jar file from the container (like jboss-j2ee.jar for Jboss). Ofcourse names of the file would be different from one container to another.
And welcome to Javaranch
If using GlassFish, then you can use following for setting classpath in windows:

%GLASSFISH_HOME%/lib/javaee.jar;%GLASSFISH_HOME%/lib/appserv-rt.jar;

Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Dec 10, 2017 21:15:24.