# mousePressed event throwing "Bad JNI lookup accessibilityHitTest" but program functions anyways

**URL:** <https://discourse.processing.org/t/mousepressed-event-throwing-bad-jni-lookup-accessibilityhittest-but-program-functions-anyways/35139>\
**Category:** Processing\
**Created:** [February 13, 2022, 5:16am UTC](https://discourse.processing.org/t/mousepressed-event-throwing-bad-jni-lookup-accessibilityhittest-but-program-functions-anyways/35139 "2022-02-13T05:16:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fishy\_Amphibian](https://avatars.discourse-cdn.com/v4/letter/f/f07891/32.png) [@Fishy\_Amphibian](https://discourse.processing.org/u/Fishy_Amphibian)\
**Post date:** [February 13, 2022, 5:16am UTC](https://discourse.processing.org/t/mousepressed-event-throwing-bad-jni-lookup-accessibilityhittest-but-program-functions-anyways/35139/1 "2022-02-13T05:16:27Z")

</div>

Hi, as the title says, my program works completely fine, its a really simple one. However, every time I click on the screen, there is a “Bad JNI lookup accessibilityHitTest” that gets thrown in console.

The exception thrown in “Exception in thread “AppKit Thread” java.lang.NoSuchMethodError: accessibilityHitTest”. Not sure how to fix this.

I wrote a way smaller piece of code that literally just draws a black background, and prints to console on the mousePressed() event but the error still happens.

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