• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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

 
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.
 
Bartender
Posts: 4048
48
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: 4048
48
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to Javaranch
 
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;

 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!