# 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:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![apratt](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@apratt](https://discourse.processing.org/u/apratt)
#### Post date: [July 4, 2018, 4:21am UTC](https://discourse.processing.org/t/can-someone-try-to-find-this-library-in-processing/1488/1 "2018-07-04T04:21:01Z")

</div>

No matter what I do, Processing just won’t find this library. No matter where I put it or how many renames I do, Processing can’t find it and I can’t find an alternative anywhere. I basically need it for the “Descriptive” class

[http://adilapapaya.com/papayastatistics/](http://adilapapaya.com/papayastatistics/)

Anyone wanna give it a shot and then give a solution (or walkthrough of what/how they did) if they find whats wrong?

---

<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, 4:41am UTC](https://discourse.processing.org/t/can-someone-try-to-find-this-library-in-processing/1488/2 "2018-07-04T04:41:29Z")

</div>

The problem is that there is not jar inside the library folder inside the papaya folder.

```auto
sketchFolder
.........Libraries
................Papaya
.....................examples
.....................library <-------EMPTY: no jar here :( 
.....................reference
.....................src

```

Kf

---

<div class="post-metadata">

### Author: ![apratt](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@apratt](https://discourse.processing.org/u/apratt)
#### Post date: [July 4, 2018, 5:01am UTC](https://discourse.processing.org/t/can-someone-try-to-find-this-library-in-processing/1488/3 "2018-07-04T05:01:38Z")

</div>

So I assume that would make the whole library obsolete?

Not sure why they would give out a library with no .jar file if the whole thing won’t work

Is there a way to just take one class from this library or work around this? Thats all I need

---

<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, 5:15am UTC](https://discourse.processing.org/t/can-someone-try-to-find-this-library-in-processing/1488/4 "2018-07-04T05:15:02Z")

</div>

I will try to see if I can compile it but make a note I have not done this before. But yeah, it is **not** obsolete as the source code is there. One needs to build the jar files. In Processing, they provide an Eclipse template. I don’t use Eclipse atm so I see if I can get it going.

Tagging @quark or @Kevin Is it possible to build a library using std java commands aka using java CLI?

Kf

---

<div class="post-metadata">

### Author: ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)
#### Post date: [July 4, 2018, 5:47am UTC](https://discourse.processing.org/t/can-someone-try-to-find-this-library-in-processing/1488/5 "2018-07-04T05:47:44Z")

</div>

@kfrajer Generally you need to put core.jar on your classpath, I use maven to build libraries, and you can obtain a usable core.jar from maven central thanks to Jeremy Laviole see his pom.xml here [https://github.com/Rea-lity-Tech/Skatolo](https://github.com/Rea-lity-Tech/Skatolo), where he builds a modified `controlP5`.

---

<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, 6:36am UTC](https://discourse.processing.org/t/can-someone-try-to-find-this-library-in-processing/1488/6 "2018-07-04T06:36:25Z")

</div>

@apratt Here is the [library](https://github.com/kfrajer/papaya.git) with the proper jar. Just add the proper folders following the structure dictated by the Processing Wiki and it should work. I tested this lib (and its jar) with P3.3.7 on Win 10 OS.

@monkstone I will have to give it a try another day as I have to go to bed. Thxs for sharing the link.

Kf

---

<div class="post-metadata">

### Author: ![apratt](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@apratt](https://discourse.processing.org/u/apratt)
#### Post date: [July 4, 2018, 6:57am UTC](https://discourse.processing.org/t/can-someone-try-to-find-this-library-in-processing/1488/7 "2018-07-04T06:57:27Z")

</div>

Thanks you’ve been a big help.

Question. Which proper folders? You mean the “src, library, examples, reference” folders? I must be missing something

You talking about from here?

> **[Processing (programming language)](https://en.wikipedia.org/wiki/Processing_(programming_language))**
>
> Processing is an open-source graphical library and integrated development environment (IDE) / playground built for the electronic arts, new media art, and visual design communities with the purpose of teaching non-programmers the fundamentals of computer programming in a visual context.
> Processing uses the Java language, with additional simplifications such as additional classes and aliased mathematical functions and operations. As well as this, it also has a graphical user interface for simplyf...

---

<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

---

<div class="post-metadata">

### Author: ![apratt](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@apratt](https://discourse.processing.org/u/apratt)
#### Post date: [July 4, 2018, 2:06pm UTC](https://discourse.processing.org/t/can-someone-try-to-find-this-library-in-processing/1488/9 "2018-07-04T14:06:55Z")

</div>

> [@kfrajer](#):
>
> 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):
> 
> ```auto
> // 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:
> 
> ```auto
> // font
> PFont titleFont;
> PFont smallFont;
> PFont tinyFont;
> 
> [...]
> 
> void settings(){
> 
> ```

Thanks for the help. The code runs fine on my Mac. I get exactly what I want and the new window pops up clean, but I get an error when I run it on my Windows 7 PC. Not sure why that is. Its the same code, everything is in the same location. I posted a picture below to show the error I get. Anyone know why that is and a solution?

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

---

<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, 5:31pm UTC](https://discourse.processing.org/t/can-someone-try-to-find-this-library-in-processing/1488/10 "2018-07-04T17:31:50Z")

</div>

This is a new problem. Please create a new post. I can only guess it is related to minim. To test, please run example code that comes with the **Minim** library.

Kf

---

<div class="post-metadata">

### Author: ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)
#### Post date: [July 5, 2018, 4:13pm UTC](https://discourse.processing.org/t/can-someone-try-to-find-this-library-in-processing/1488/11 "2018-07-05T16:13:16Z")

</div>

If you post between multiple sites, please link between them. This question has already been answered here:

> <https://stackoverflow.com/questions/51166021/what-to-do-if-processing-wont-find-a-library>

@kfrajer Yeah you can definitely make a library without using Eclipse. But you don’t have to. I’d probably just drag the jar onto the Processing editor and let Processing work its magic automatically.

---

<div class="post-metadata">

### Author: ![sofii](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@sofii](https://discourse.processing.org/u/sofii)
#### Post date: [January 7, 2019, 1:29pm UTC](https://discourse.processing.org/t/can-someone-try-to-find-this-library-in-processing/1488/12 "2019-01-07T13:29:26Z")

</div>

I was having the same problem and could finally solve it thank to this post and at [this one](https://discourse.processing.org/t/why-wont-processing-find-my-library/1483/4)

Besides not downloading the library from [this site](https://github.com/kfrajer/papaya), as suggested by @kfrajer, I added the papaya.jar file on this path C:\Program Files\Processing\core\library and it finally worked!
