• Post Reply Bookmark Topic Watch Topic
  • New Topic

I m new to EJB. Need a little help for EJB compilation.

 
Arslan Khan
Greenhorn
Posts: 18
Android Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I m getting the error 'package javax.ejb.* not found.' every time I tried to compile EJB program. Please help me with this issue.
 
Vijitha Kumara
Bartender
Posts: 3952
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Vijitha Kumara
Bartender
Posts: 3952
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to Javaranch
 
lalit upadheyay
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If using GlassFish, then you can use following for setting classpath in windows:

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

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!