aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes where do we put the 3rd party libraries Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "where do we put the 3rd party libraries" Watch "where do we put the 3rd party libraries" New topic
Author

where do we put the 3rd party libraries

Premil Jacob
Ranch Hand

Joined: Sep 10, 2004
Posts: 30
where in the directory structure do we put the 3rd party libraries in an enterprise bean.


Thanks,<br />Premil<br /> <br />SCJP 1.4
Valentin Tanase
Ranch Hand

Joined: Feb 17, 2005
Posts: 704
Hi Jacob,

First you need to pack your ejbs and other components as an ear. You also need to add the common library (let�s say its name is commons.jar) to the same ear. Just for simplicity let�s assume that the commons.jar library is in the ear�s root. Then all you need to do is to change the manifest files for all your ejb jars that use this common library, adding a line like this:

Regards.


I think, therefore I exist -- Rene Descartes
Praveena Venigalla
Ranch Hand

Joined: Oct 29, 2003
Posts: 36
Hi Premil:
You need to add the third party libraries to your classpath as external jar files.

If you are using WSAD : do as follows
1.)Right click on your project-->select Properties
2.)Pop-up window opens ---select Java build path on left side.
On right side go to Libraries tab ---->Click on Add External Jars to add the jar file you needed.

You can directly go to your classpath file and edit it by adding the path for Jar files you needed for your project.

Thanks,
Praveena
[ March 17, 2005: Message edited by: Praveena Venigalla ]

Praveena Venigalla<br />OCP,SCJP,SCWCD,SCBCD<br />--Knowledge is attained by learning to hold one's tongue
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: where do we put the 3rd party libraries