where in the directory structure do we put the 3rd party libraries in an enterprise bean.
Thanks,<br />Premil<br /> <br />SCJP 1.4
Joined: Feb 17, 2005
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:
I think, therefore I exist -- Rene Descartes
Joined: Oct 29, 2003
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.