# How to distribute sketches with libraries to Openframe?

**URL:** https://discourse.processing.org/t/how-to-distribute-sketches-with-libraries-to-openframe/14095
**Category:** Development
**Created:** [September 21, 2019, 11:43am UTC](https://discourse.processing.org/t/how-to-distribute-sketches-with-libraries-to-openframe/14095 "2019-09-21T11:43:41Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [September 26, 2019, 4:22pm UTC](https://discourse.processing.org/t/how-to-distribute-sketches-with-libraries-to-openframe/14095/9 "2019-09-26T16:22:24Z")

</div>

> [@jvolker](#):
>
> with the `AdditiveWaves` example of Toxiclibs. I copied the jar into the code folder and deleted Toxiclibs in the library folder. It fails to compile.

Most libraries are only one jar – but toxiclibs is not one of them, it is something like 13 jars plus other resources. You need to copy the full contents of the `toxiclibs/library` folder into `mysketch/code/` folder. Not the folder itself – the contents, like this:

Mac bash shell script:

```auto
#!/usr/bin/env bash
SRCLIB=~/Documents/Processing/libraries/toxiclibs
SRCSKETCH=${SRCLIB}/examples/core/math/AdditiveWaves
SKETCH=~/Desktop/AdditiveWaves

cp -r "${SRCSKETCH}" "${SKETCH}"
mkdir "${SKETCH}/code"
cp -r "${SRCLIB}/library/" "${SKETCH}/code/"

```

The results from source to destination should look like this:

 ![ProcessingInstallLibraryIntoSketchCodeFolder](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/6/6bb896e5ad4bc3469e91295cf88d0ad812e4e815.png)

When you are done, uninstall toxiclibs from PDE, then run the sketch – it works.

You don’t need the examples, reference, or src etc, but you _may_ need anything in the library folder. Note that for most libraries this is just one jar – it is enough to drag-drop its single jar onto the sketch window or manually copy it into the sketch `/code` folder.

---

_[View the full topic](https://discourse.processing.org/t/how-to-distribute-sketches-with-libraries-to-openframe/14095)._
