facebook

ejb and library

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #208232 Reply

    arnor
    Member

    Hi to the list.

    I have an ejb project with myeclipse. I need add some library (es. jdom) in my project.

    In eclipse I can add library with wizard but when I deploy the ejb I get class not found exception.
    Where I must put my jdom.jar in eclipse project?

    thanks in advace.
    regards Lorenzo

    #208253

    Scott Anderson
    Participant

    Lorenzo,

    Typically depedent jars for EJB projects are placed in the enclosing EAR project at the root level. You then need to modify the Class-Path entry in your ejb project’s MANIFEST.MF file to point to the library. You’ll still need to keep the jar on the eclipse classpath, since that handles compile-time dependencies but the addition of the above will handle deployment dependencies.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: ejb and library

You must be logged in to post in the forum log in