XML Feeds

.

[java-dev] Re: Strange NoClassDefFoundError when inside MaxClock

Adam Murray adamjmurray at gmail.com
Wed Apr 9 11:56:38 MDT 2008


Quote: topher lafata wrote on Wed, 09 April 2008 08:59
----------------------------------------------------
> hey adam.
> definitely seems to be some sort of strange classloader interaction.  
> is org/jruby/runtime/callback in your
> jruby classpath??

That class is in jruby.jar, which is on Max's classpath (Cycling '74/java/lib). I believe JRuby has access to everything on the JVM (i.e. Max's) classpath since it's running inside MXJ. There is a separate path I need to configure for the context of the ruby scripts, and jruby.jar is on there too. I believe the JRuby classloader is for that script context. This error occurs the moment I try to eval a script when the stack trace starts with MaxClock. 

I was wondering what MaxClock might be doing that doesn't happen when I spawn my own Thread. If I knew a little more about the Max side I might be able to post intelligent questions on the JRuby mailing list. 

 
> regardless, i would probably do file watcher with a java thread too.

Yeah, so I'm not stuck on this issue. Just curious what's going on here.


--
Adam Murray
compusition.com


More information about the java-dev mailing list