Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • 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:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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

 
Greenhorn
Posts: 18
Android Python Java
  • 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: 4107
72
Hibernate Fedora Chrome
  • 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: 4107
72
Hibernate Fedora Chrome
  • 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;

 
I can't renounce my name. It's on all my stationery! And hinted in this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic