Entirely Random NoClassDefFoundError

Matthew Aidekman's icon

I've been working on a mammoth MXJ patch for a while. Ever since I bought my new macbook, I've been getting totally random NoClassDefFound Errors every time I load the patch. Oddly, it's a different class every fricken time!

I'm using eclipse to code.

the structure of my project is included below. This has worked in the past. I can't keep my java stuff in the system folders because I have 80 versions lying around.

BigProject/Main.maxpat
BigProject/MyMXJProject/mypackage/MyClass.class
BigProject/MyMXJProject/mypackage/MyClass.java

Matthew Aidekman's icon

not that this would surprise anyone but it appears that exporting a lib appears to help. Unfortunately, I'd quit working if I had to export a jar manually from eclipse 100 times a day.

Matthew Aidekman's icon

Ok the lib thing doesn't work either.

I may have a nervous breakdown in a second.

Hans Höglund's icon

Could you post your Max file paths and CLASSPATH settings please? Having multiple versions of classes in your paths could be an issue.

Matthew Aidekman's icon

Hans I apologize. I started a new thread for the solution to this one. Apparently there is a bug where if I open this patch, then open one elsewhere in the filesystem, the first patch no longer can find any of the classes.

petrus04's icon

Hi Matthew,
this is a very old thread.
But i have been experiencing the same issue for the last 7 days.
Did you find any solutions?