# Including shared pde files across projects

**URL:** <https://discourse.processing.org/t/including-shared-pde-files-across-projects/1701>\
**Category:** Development\
**Created:** [July 12, 2018, 3:49am UTC](https://discourse.processing.org/t/including-shared-pde-files-across-projects/1701 "2018-07-12T03:49:47Z")\
**Posts on this page:** 1\
**Showing post:** 20

<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:** [July 14, 2018, 11:39pm UTC](https://discourse.processing.org/t/including-shared-pde-files-across-projects/1701/20 "2018-07-14T23:39:49Z")

</div>

> [@malcolm\_gc](#):
>
> … had this vague idea that the “.jar” should have the same name as the `package`…

Not according to the article for installing libraries in Processing: ⛔

- [How to Install a Contributed Library · processing/processing Wiki · GitHub](https://GitHub.com/processing/processing/wiki/How-to-Install-a-Contributed-Library)

> The top folder of a library must have the same name as the .jar file located inside a library’s library folder (minus the .jar extension):

Therefore, we’re free to choose whatever name to the “.jar” file, as long as we use that same name for its top folder. 🧐

My “.jar” file was named as: “Palette.jar”. So in order to integrate it to the PDE, I’ve gotta name its top folder inside sketchbook’s “libraries/” folder as “Palette/”: 📁

```auto
 +---libraries
| \---Palette
| \---library
| Palette.jar

```

However, after I’ve completed the “.jar” integration into the PDE, when running the “PaletteJarSketch.pde” w/o the “Palette.jar” inside its subfolder “code/”, the statement `import static malcolm.Palette.*;` didn’t work! 🤕

I had to use a regular `import` before being able to use the `import static`: 🤪

```auto
import malcolm.Palette;
import static malcolm.Palette.*;

```

I’ve updated my “Processing\_Jar\_Creation” repo to include this extra `import` statement already. 😸

And even included the PDE’s “.jar” integration there too: 🕶

> **[GitHub - GoToLoop/Processing\_Jar\_Creation: Example for compiling a ".java"...](https://github.com/GoToLoop/Processing_Jar_Creation)**
>
> Example for compiling a ".java" file and package it as a ".jar" for Processing. - GitHub - GoToLoop/Processing\_Jar\_Creation: Example for compiling a ".java" file and p...

---

_[View the full topic](https://discourse.processing.org/t/including-shared-pde-files-across-projects/1701)._
