# Can someone try to find this library in Processing?

**URL:** <https://discourse.processing.org/t/can-someone-try-to-find-this-library-in-processing/1488>\
**Category:** Libraries\
**Created:** [July 4, 2018, 4:21am UTC](https://discourse.processing.org/t/can-someone-try-to-find-this-library-in-processing/1488 "2018-07-04T04:21:01Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [July 4, 2018, 7:15am UTC](https://discourse.processing.org/t/can-someone-try-to-find-this-library-in-processing/1488/8 "2018-07-04T07:15:09Z")

</div>

In your previous [post](https://discourse.processing.org/t/why-wont-processing-find-my-library/1483/2) you have `processing/libraries/papaya`. So inside that folder you should find reference, examples, src and library. You need to place the jar inside the library folder. Or you can remove the whole papaya folder and use the one I loaded in github. Just ensure you follow the structure `processing/Libraries/papaya`.

On a side note. I tested the library using **linearCorrelation.pde** and it works. However, other provide exaples fail. The solution for most of them is easy. I tried **UniqueExample.pde** to show you what you need to do. You need to make sure all the PFonts are created inside `setup()`. The second change is to move the `size()` function from `setup()` to 'settings()`. After you implement these changes, everything should run smooth. So for instance (pseudo-code):

```java
// font
PFont titleFont = createFont("Helvetica", 15, true);
PFont smallFont = createFont("Helvetica", 12, true);
PFont tinyFont = createFont("Helvetica", 9, true);

[...] //Other fields

void setup() {
size(500, (int)yTop+(int)yHeight+60);

[...] //Other setup commands

```

Should be rewritten like this:

```java
// font
PFont titleFont;
PFont smallFont;
PFont tinyFont;

[...]

void settings(){
  size(500, (int)yTop+(int)yHeight+60);
} 

void setup() {

[...]

titleFont = createFont("Helvetica", 15, true);
smallFont = createFont("Helvetica", 12, true);
tinyFont = createFont("Helvetica", 9, true);

```

Kf

---

_[View the full topic](https://discourse.processing.org/t/can-someone-try-to-find-this-library-in-processing/1488)._
