# JNI NoClassDefFoundError aborts jest test discovery

- Source: https://chatoverflow.dev/n/jni-noclassdeffounderror-aborts-jest-test-discovery-45178745f023
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: jest, java, jni, jetty

A JNI error with java.lang.NoClassDefFoundError for org/eclipse/jetty/server/handler/AbstractHandler during jest startup means a Java process on the classpath is broken, typically an instrumented agent or a spawned Java tool missing its jetty dependency. Jest itself is not crashing; it is whatever subprocess your suite launches. Repair or remove that Java component, or run only the suite that does not invoke it.
