# Java Mode: How to import external code?

**URL:** <https://discourse.processing.org/t/java-mode-how-to-import-external-code/12258>\
**Category:** Processing\
**Created:** [June 24, 2019, 8:08am UTC](https://discourse.processing.org/t/java-mode-how-to-import-external-code/12258 "2019-06-24T08:08:05Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [June 25, 2019, 10:53pm UTC](https://discourse.processing.org/t/java-mode-how-to-import-external-code/12258/7 "2019-06-25T22:53:40Z")

</div>

> [@Including shared pde files across projects](https://discourse.processing.org/t/including-shared-pde-files-across-projects/1701/20):
>
> Not according to the article for installing libraries in Processing: no_entry[https://GitHub.com/processing/processing/wiki/How-to-Install-a-Contributed-Library](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. face_with_monocle My “.jar” file was named as: “Palette.jar”. So in o…

---

_[View the full topic](https://discourse.processing.org/t/java-mode-how-to-import-external-code/12258)._
