# Specifying/Locations of external jars

**URL:** <https://forums.visual-paradigm.com/t/specifying-locations-of-external-jars/11408>\
**Category:** Plug-in & Open API\
**Created:** [May 11, 2010, 9:52pm UTC](https://forums.visual-paradigm.com/t/specifying-locations-of-external-jars/11408 "2010-05-11T21:52:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichaelLantz](https://avatars.discourse-cdn.com/v2/letter/m/c67d28/32.png) [@MichaelLantz](https://forums.visual-paradigm.com/u/MichaelLantz)\
**Post date:** [May 12, 2010, 9:29am UTC](https://forums.visual-paradigm.com/t/specifying-locations-of-external-jars/11408/1 "2010-05-12T09:29:16Z")

</div>

Greetings,

Is it possible to implement jar files in your class files (for open api plugins) other than the jar files in “C:\Program Files\VP Suite 4.2\lib”? I have not played around with it for too long, however I’m thinking it is an easy solution.

For the time being I have had to compile the source code and place the needed libraries in the class folder of my plugin. I feel this may be unnecessary however.

Thank you,

Michael Lantz

---

<div class="post-metadata">

**Author:** ![Jick](https://avatars.discourse-cdn.com/v2/letter/j/ea666f/32.png) [@Jick](https://forums.visual-paradigm.com/u/Jick)\
**Post date:** [May 14, 2010, 11:05am UTC](https://forums.visual-paradigm.com/t/specifying-locations-of-external-jars/11408/2 "2010-05-14T11:05:14Z")

</div>

Hi Michael,

You can define in plugin.xml the location of lib folder. Attached is a screenshot. The lib folder in this case should be put at plugin\lib. You can also use absolute path. Simply pass a false to the attribute relativePath and define the absolute path for attribute path.

Best regards,  
Jick   
 ![](https://forums.visual-paradigm.com/uploads/default/original/2X/e/ec4c566258bf32267188b2130fead80acb0edb8c.png)  
plugin-lib.png
