# Box2D library installation error

**URL:** <https://discourse.processing.org/t/box2d-library-installation-error/3886>\
**Category:** Libraries\
**Created:** [September 27, 2018, 4:31am UTC](https://discourse.processing.org/t/box2d-library-installation-error/3886 "2018-09-27T04:31:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![apac](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@apac](https://discourse.processing.org/u/apac)\
**Post date:** [September 27, 2018, 4:31am UTC](https://discourse.processing.org/t/box2d-library-installation-error/3886/1 "2018-09-27T04:31:51Z")

</div>

I have used Box2D examples from Nature of Code before. However, when I tried to run an example today, I got these errors:  
No library found for shiffman.box2d  
No library found for org.jbox2d.collision.shapes  
No library found for org.jbox2d.common  
No library found for org.jbox2d.dynamics  
Libraries must be installed in a folder named ‘libraries’ inside the sketchbook folder (see the Preferences window).

So I tried to install Box2D from the Contributions Manager. I get the following error. How can I resolve the problem ? Thanks !!

 ![box2D_error](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/1/1153cf1ae50894164a3cc71a2f23d6a0ac78059b.png)

---

<div class="post-metadata">

**Author:** ![jb4x](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jb4x/32/789_2.png) [@jb4x](https://discourse.processing.org/u/jb4x)\
**Post date:** [September 27, 2018, 5:14am UTC](https://discourse.processing.org/t/box2d-library-installation-error/3886/2 "2018-09-27T05:14:59Z")

</div>

Hi apac,

I had the same problem!

You need to do load it on github and manually install it.

---

<div class="post-metadata">

**Author:** ![apac](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@apac](https://discourse.processing.org/u/apac)\
**Post date:** [September 27, 2018, 5:48am UTC](https://discourse.processing.org/t/box2d-library-installation-error/3886/3 "2018-09-27T05:48:09Z")

</div>

Ok, thank you. I have already downloaded it from the link:

> **[shiffman/Box2D-for-Processing](https://github.com/shiffman/Box2D-for-Processing)**
>
> Processing JBox2D helper library and examples. Contribute to shiffman/Box2D-for-Processing development by creating an account on GitHub.

I created a folder called ‘libraries’ under my sketch folder. Not sure which of the files from box2d\_processing downloaded folder should be placed directly under ‘libraries’ folder. I have tried to place the jar files under ‘libraries’ but that did not work (box2d\_processing.jar, jbox2d-library-2.2.1-ds.jar). I have tried a few different hierarchies of files/folder. But still get the above error messages.

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [September 27, 2018, 6:16am UTC](https://discourse.processing.org/t/box2d-library-installation-error/3886/4 "2018-09-27T06:16:22Z")

</div>

i just follow that link and see that the git files /lib/… are 5 years old,  
what i did was follow the link in the readme  
[http://www.shiffman.net/p5/libraries/box2d\_processing/box2d\_processing.zip](http://www.shiffman.net/p5/libraries/box2d_processing/box2d_processing.zip)  
and after download, from there i unzip/copy dir /box2d\_processing/ into the ( here existing ) subdir /libraries/  
and ( after restart processing (3.4) ) then found examples that work, like

 ![](https://yyz2.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/5/5cbcbe4cb8c1321324a1a0add625ddc95ed0ad1f.jpeg)

for the full path / where are the JAR files?  
in processing3.4 | Files | preferences | find Sketchbook location like:  
drive:…\my\_Processing3\_sketch\_location  
and after correct copy find  
drive:…\my\_Processing3\_sketch\_location\libraries\box2d\_processing\library\  
jbox2d-library-2.2.1-ds.jar  
box2d\_processing.jar

both files from 3.3.2014

---

<div class="post-metadata">

**Author:** ![jb4x](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jb4x/32/789_2.png) [@jb4x](https://discourse.processing.org/u/jb4x)\
**Post date:** [September 27, 2018, 6:32am UTC](https://discourse.processing.org/t/box2d-library-installation-error/3886/5 "2018-09-27T06:32:33Z")

</div>

Be careful apac, the place were you should put your library is not where your project is.

Sheck out this link: [https://github.com/processing/processing/wiki/How-to-Install-a-Contributed-Library](https://github.com/processing/processing/wiki/How-to-Install-a-Contributed-Library)

---

<div class="post-metadata">

**Author:** ![apac](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@apac](https://discourse.processing.org/u/apac)\
**Post date:** [September 27, 2018, 6:55am UTC](https://discourse.processing.org/t/box2d-library-installation-error/3886/6 "2018-09-27T06:55:39Z")

</div>

jb4x, I solved the problem. I was correctly installing box2d under the ‘libraries’ folder of my sketch. I was opening the sketch program from windows explorer. I realised that I did not change the location in Preferences=\>Sketchbook location. After I changed the Sketchbook location under Preferences to the correct folder, it worked !

Thanks for your help !

---

<div class="post-metadata">

**Author:** ![apac](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@apac](https://discourse.processing.org/u/apac)\
**Post date:** [September 27, 2018, 6:56am UTC](https://discourse.processing.org/t/box2d-library-installation-error/3886/7 "2018-09-27T06:56:26Z")

</div>

Thanks ! Problem is now solved.
