# JAR won't load in Processing 4.3 but did in 4.2

**URL:** <https://discourse.processing.org/t/jar-wont-load-in-processing-4-3-but-did-in-4-2/43973>\
**Category:** Libraries\
**Created:** [February 21, 2024, 7:42pm UTC](https://discourse.processing.org/t/jar-wont-load-in-processing-4-3-but-did-in-4-2/43973 "2024-02-21T19:42:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@Philip](https://discourse.processing.org/u/Philip)\
**Post date:** [February 21, 2024, 7:42pm UTC](https://discourse.processing.org/t/jar-wont-load-in-processing-4-3-but-did-in-4-2/43973/1 "2024-02-21T19:42:54Z")

</div>

Hi,  
sketch works fine under 4.2 but with 4.3, I get “The package “javax.mail” does not exist. You might be missing a library.”  
javax.mail.jar still resides in code folder next to the sketch.

Any ideas?  
Thanks, Philip

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [February 21, 2024, 8:56pm UTC](https://discourse.processing.org/t/jar-wont-load-in-processing-4-3-but-did-in-4-2/43973/2 "2024-02-21T20:56:15Z")

</div>

Try drag the jar onto the processing IDE  
to register it again

---

<div class="post-metadata">

**Author:** ![Philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@Philip](https://discourse.processing.org/u/Philip)\
**Post date:** [February 21, 2024, 8:59pm UTC](https://discourse.processing.org/t/jar-wont-load-in-processing-4-3-but-did-in-4-2/43973/3 "2024-02-21T20:59:52Z")

</div>

Yeah, already tried that, but it says that it’s already beed copied…

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [February 21, 2024, 9:14pm UTC](https://discourse.processing.org/t/jar-wont-load-in-processing-4-3-but-did-in-4-2/43973/4 "2024-02-21T21:14:12Z")

</div>

Okay

Rename code to code1

Try again

---

<div class="post-metadata">

**Author:** ![Philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@Philip](https://discourse.processing.org/u/Philip)\
**Post date:** [February 21, 2024, 9:18pm UTC](https://discourse.processing.org/t/jar-wont-load-in-processing-4-3-but-did-in-4-2/43973/5 "2024-02-21T21:18:10Z")

</div>

Renamed, dragged jar onto the sketch again. Folder code was created, but the jar not copied. Gives me an error, though: Could not add ‘javax.mail.jar’ to the sketch.

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [February 21, 2024, 9:55pm UTC](https://discourse.processing.org/t/jar-wont-load-in-processing-4-3-but-did-in-4-2/43973/6 "2024-02-21T21:55:02Z")

</div>

Hello @Philip,

Gives this a try:  
[https://javaee.github.io/javamail/](https://javaee.github.io/javamail/)

_javax.mail.jar 1.6.2_ in the _code folder_:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/5/2/528322f6c8a4143444df5216a863537c68dc9c22.png)

Try just testing your jar file in a new sketch.

`:)`

---

<div class="post-metadata">

**Author:** ![Philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@Philip](https://discourse.processing.org/u/Philip)\
**Post date:** [February 22, 2024, 6:49pm UTC](https://discourse.processing.org/t/jar-wont-load-in-processing-4-3-but-did-in-4-2/43973/7 "2024-02-22T18:49:34Z")

</div>

Hm, that’s funny.

Existing javax.mail.jar

- Works with Processing 4.2
- Doesn’t work with 4.3 with current project
- Works with 4.3 on a blank sketch

Linked javax.mail.jar 1.6.2

- Works with 4.3
- Since it’s from 2018, I thought I’d have it already. Unfortunately, I can’t see what version I am currently using

Anyway, this version seems to work, at least now it throws another error 🙃

Thanks for your help, @Chrisir and @glv
