# Error: The package “javax.xml.bind” does not exist. You might be missing a library

**URL:** <https://discourse.processing.org/t/error-the-package-javax-xml-bind-does-not-exist-you-might-be-missing-a-library/47360>\
**Category:** Libraries\
**Created:** [October 14, 2025, 1:30pm UTC](https://discourse.processing.org/t/error-the-package-javax-xml-bind-does-not-exist-you-might-be-missing-a-library/47360 "2025-10-14T13:30:50Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [October 16, 2025, 2:32pm UTC](https://discourse.processing.org/t/error-the-package-javax-xml-bind-does-not-exist-you-might-be-missing-a-library/47360/8 "2025-10-16T14:32:48Z")

</div>

> [@Bua](#):
>
> May be you find a solution …

I found a solution (discussed in previous posts) that works for me on:

- W10
- W11
- Processing 4.4.7
- Processing 4.4.10

Code source:

_[teachablemachine-community/snippets/markdown/tiny\_image/tiny\_templates/TMConnector/TM\_Connector/TM\_Connector.pde at master · googlecreativelab/teachablemachine-community · GitHub](https://github.com/googlecreativelab/teachablemachine-community/blob/master/snippets/markdown/tiny_image/tiny_templates/TMConnector/TM_Connector/TM_Connector.pde)_

Changes made:

```auto
// Do not use:
//import javax.xml.bind.DatatypeConverter;

// Do not use:
//String data = DatatypeConverter.printBase64Binary(frameBuffer);

// Use this:
String data = Base64.getEncoder().encodeToString(frameBuffer);

```

> [@glv](#):
>
> In the future I will _isolate projects_ into their own _sketchbook folder_ with only the _required libraries_ for testing.

Use a separate _Sketchbook folder_ and add only the libraries required:

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

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/d/0/d0781cc43ca43f71453699eee34433c7feea76e0.png)

The other libraries are included with Processing and do not have to be added.

I encourage you and your students to read the guidelines:

> [@Welcome to the Processing Foundation Discourse](https://discourse.processing.org/t/welcome-to-the-processing-foundation-discourse/8):
>
> This is a place to discuss [Processing](https://processing.org/), [p5.js](https://p5js.org/), [Processing for Android](http://android.processing.org/), Processing for Pi, [Processing.py](http://py.processing.org/) and related software initiatives. It’s a place to talk about general ideas and specific projects. You can learn more about the [Processing Foundation](https://processingfoundation.org/) on its website. Our goal is to promote software literacy within the visual arts, and visual literacy within technology-related fields — and to make these fields accessible to diverse communities. Our goal is to empower people of all interests and …

The section on _Asking Questions_ may be helpful!

I will assist you if follow the guidelines with future questions and only work with Processing 4.4.7 or the latest Processing 4.4.10.

Have fun!

`:)`

---

_[View the full topic](https://discourse.processing.org/t/error-the-package-javax-xml-bind-does-not-exist-you-might-be-missing-a-library/47360)._
