# What java libaries are default in processing?

**URL:** <https://discourse.processing.org/t/what-java-libaries-are-default-in-processing/27737>\
**Category:** Beginners\
**Created:** [February 11, 2021, 4:11pm UTC](https://discourse.processing.org/t/what-java-libaries-are-default-in-processing/27737 "2021-02-11T16:11:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CodeMasterX](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/codemasterx/32/2942_2.png) [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Post date:** [February 11, 2021, 4:11pm UTC](https://discourse.processing.org/t/what-java-libaries-are-default-in-processing/27737/1 "2021-02-11T16:11:58Z")

</div>

Hi!  
I recently started looking into java libraries.  
I tried a few libraries and saw that the `java.event.KeyListener` looks and works exactly like `void keyPressed() keyReleased() keyTyped()`

Which other libraries are in processing?

Please correct me if I understand anything wrongly

---

<div class="post-metadata">

**Author:** ![WeinSim](https://avatars.discourse-cdn.com/v4/letter/w/db5fbb/32.png) [@WeinSim](https://discourse.processing.org/u/WeinSim)\
**Post date:** [February 11, 2021, 7:42pm UTC](https://discourse.processing.org/t/what-java-libaries-are-default-in-processing/27737/2 "2021-02-11T19:42:09Z")

</div>

Many of them. I’m not exactly sure, but the most important ones are all default in Processing. And if one isn’t default, you can just try something like `import java.awt.*;`, `import java.util.;` or something similar. But I think you don’t need to download and install any java libraries, as they all come with Processing.

---

<div class="post-metadata">

**Author:** ![SNICKRS](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@SNICKRS](https://discourse.processing.org/u/SNICKRS)\
**Post date:** [February 12, 2021, 4:49pm UTC](https://discourse.processing.org/t/what-java-libaries-are-default-in-processing/27737/3 "2021-02-12T16:49:40Z")

</div>

I think that they use the awt libraries and the util libraries. They also use io and javax libraries.

---

<div class="post-metadata">

**Author:** ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)\
**Post date:** [February 12, 2021, 7:13pm UTC](https://discourse.processing.org/t/what-java-libaries-are-default-in-processing/27737/4 "2021-02-12T19:13:14Z")

</div>

All the core JDK “libraries” at [Java Platform SE 8](https://docs.oracle.com/javase/8/docs/api/) are available from Processing. Very little doesn’t require explicit use of `import` though. Java code automatically imports everything from `java.lang` (not the sub-packages) so Processing inherits that. On top of that, Processing adds some additional import statements for you, on top of its own libraries, before passing across to the Java compiler. These 8 additional classes can be seen at [processing/PdePreprocessor.java at master · processing/processing · GitHub](https://github.com/processing/processing/blob/master/java/src/processing/mode/java/preproc/PdePreprocessor.java#L1228)
