# How to include .pde o .java file with path?

**URL:** <https://discourse.processing.org/t/how-to-include-pde-o-java-file-with-path/10646>\
**Category:** Development\
**Created:** [April 26, 2019, 12:08am UTC](https://discourse.processing.org/t/how-to-include-pde-o-java-file-with-path/10646 "2019-04-26T00:08:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![erkosone](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@erkosone](https://discourse.processing.org/u/erkosone)\
**Post date:** [April 26, 2019, 12:08am UTC](https://discourse.processing.org/t/how-to-include-pde-o-java-file-with-path/10646/1 "2019-04-26T00:08:41Z")

</div>

Hi, i have a question…

I work in a library for processing over 3 years ago, i named this library “gameLibZero” and this is a library for game programming in processing 3.x on Windows, linux, macosx and Android…

my problem starts with the code, the library is a .pde file that I must add to any project where I want to use it.

The problem is that I can not leave it in a folder where processing is used without having to copy it to the project folder every time …

Is there a way to include a .pde or .java file that is not in the project folder?

---

<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:** [April 26, 2019, 2:59am UTC](https://discourse.processing.org/t/how-to-include-pde-o-java-file-with-path/10646/2 "2019-04-26T02:59:44Z")

</div>

I’d suggest you to compile your library and package it as a “.jar” file: ☕

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