I'm getting a NoClassDefFoundError when I try to run some code from a MaxClock. This code can be executed repeatedly outside of a MaxClock with no problems. How is that possible?
I'm interacting with JRuby here, so it may be a bad interaction with JRuby's ClassLoader. I'm trying to implement a file autowatch mechanism for ruby scripts in my max ruby object. I gave up on the MaxClock approach and implemented the file watcher in a Java Thread, which is probably a more appropriate solution. That seems to work fine so far.
Anyway, thought this was pretty weird! Maybe if anyone else is having issues with MaxClock you should just switch to using standard Java Threads.
The class in question is definitely on Max's classpath.
at java.lang.ClassLoader.defineClass1(Native Method)