I am running macOS Ventura 13.6, NetBeans 19, and OpenJDK 11 (Amazon Corretto).
>From time to time while running my webapp with Tomcat though NetBeans I hit a NoClassDefFoundError on a particular class in one of my dependencies. It's always the same class. Checking StackOverflow, this sort of problem goes back at least 10 years ( https://stackoverflow.com/questions/16942574/netbeans-noclassdeffounderror). I've found I can clear the error by closing NetBeans and removing the contents of /Users/[username]/Library/Caches/NetBeans/. Running "Clean and Build" and "Build with Dependencies" did not fix the problem. I prefer running with "Save on Compile", which seems to save me more problems than this NoClassDefFoundError. My question: Is there a simpler way, like through the UI, to clear the cache? -- "Hell hath no limits, nor is circumscrib'd In one self-place; but where we are is hell, And where hell is, there must we ever be" --Christopher Marlowe, *Doctor Faustus* (v. 111-13)