leap motion sdk with max msp - NoClassDefFoundError


    Aug 22 2013 | 7:41 pm
    Hello.
    I'm trying to create max MSP java patch with leapmotion sdk.
    the project is compiled properly after adding LeapJava.jar, libLeap.dylib and libLeapJava.dylib
    to the project build path.
    but when I try to execute the MaxObject class that I created i get the following error messages:
    (mxj classloader) contextual search path directory /Volumes/ ©¿_ does not seem to exist or is not directory!
    java.lang.NoClassDefFoundError: com/leapmotion/leap/Listener
    Caused by: java.lang.ClassNotFoundException: com.leapmotion.leap.Listener
    at com.cycling74.max.MXJClassLoaderImpl.lookupClassData(MXJClassLoaderImpl.java:220)
    at com.cycling74.max.MXJClassLoaderImpl.doLoadClass(MXJClassLoaderImpl.java:111)
    at com.cycling74.max.MXJClassLoaderImpl.loadClass(MXJClassLoaderImpl.java:88)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    (mxj) unable to alloc instance of MaxLeapMotion
    (mxj classloader) contextual search path directory /Volumes/èç? does not seem to exist or is not directory!
    java.lang.NoClassDefFoundError: com/leapmotion/leap/Listener
    Caused by: java.lang.ClassNotFoundException: com.leapmotion.leap.Listener
    at com.cycling74.max.MXJClassLoaderImpl.lookupClassData(MXJClassLoaderImpl.java:220)
    at com.cycling74.max.MXJClassLoaderImpl.doLoadClass(MXJClassLoaderImpl.java:111)
    at com.cycling74.max.MXJClassLoaderImpl.loadClass(MXJClassLoaderImpl.java:88)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    (mxj) unable to alloc instance of MaxLeapMotion
    -------------
    i'm guessing it doesn't find the jar? or the dylib files that where linked to the project?
    any ideas how to resolve issues like that?
    thanks

    • Aug 23 2013 | 11:41 am
      ok i resolve the issue configuring system jar location in max.java.config.txt and copied the required jars there.