# What to do when two libraries share the same ".jar" file?

**URL:** https://discourse.processing.org/t/what-to-do-when-two-libraries-share-the-same-jar-file/23124
**Category:** Libraries
**Created:** [August 8, 2020, 5:53am UTC](https://discourse.processing.org/t/what-to-do-when-two-libraries-share-the-same-jar-file/23124 "2020-08-08T05:53:47Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![iannisxenokiss](https://avatars.discourse-cdn.com/v4/letter/i/50afbb/32.png) [@iannisxenokiss](https://discourse.processing.org/u/iannisxenokiss)
#### Post date: [August 8, 2020, 5:53am UTC](https://discourse.processing.org/t/what-to-do-when-two-libraries-share-the-same-jar-file/23124/1 "2020-08-08T05:53:47Z")

</div>

Hi gals and guys!

I’m using a Leap Motion for a project and have two libraries using the same “LeapJava.jar” file, so whenever I try to run the sketch it throws: “Duplicate libraries found for com.leapmotion.leap”

Is there a way I can circumvent this issue, or perhaps join two libraries in one? Or will I just have to sacrifice one library for the other?

Thanks in advance!

---

<div class="post-metadata">

### Author: ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)
#### Post date: [August 8, 2020, 6:03am UTC](https://discourse.processing.org/t/what-to-do-when-two-libraries-share-the-same-jar-file/23124/2 "2020-08-08T06:03:50Z")

</div>

I think you should be able to rename one of the libraries, remember to use the naming rules and to use the new name in your sketch.

---

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [August 8, 2020, 6:10am UTC](https://discourse.processing.org/t/what-to-do-when-two-libraries-share-the-same-jar-file/23124/3 "2020-08-08T06:10:31Z")

</div>

> **[r/processing - What to do when two libraries share the same ".jar" file?](https://www.reddit.com/r/processing/comments/i5jxcg/what_to_do_when_two_libraries_share_the_same_jar/)**
>
> 2 votes and 0 comments so far on Reddit

---

<div class="post-metadata">

### Author: ![iannisxenokiss](https://avatars.discourse-cdn.com/v4/letter/i/50afbb/32.png) [@iannisxenokiss](https://discourse.processing.org/u/iannisxenokiss)
#### Post date: [August 8, 2020, 6:59am UTC](https://discourse.processing.org/t/what-to-do-when-two-libraries-share-the-same-jar-file/23124/4 "2020-08-08T06:59:04Z")

</div>

Thanks, Paul. Will check out the naming rules and such.  
Have a nice Sunday!

---

<div class="post-metadata">

### Author: ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)
#### Post date: [August 8, 2020, 9:01am UTC](https://discourse.processing.org/t/what-to-do-when-two-libraries-share-the-same-jar-file/23124/5 "2020-08-08T09:01:13Z")

</div>

Its quite simple, just no spaces allowed and I think no “-”
