java classes in projects' folder and CLASSPATH

    Sep 04 2013 | 4:43 pm
    Hi there,
    I usually placed my java classes in a separate folder with all my java stuff and used to change CLASSPATH with this location.
    I'd like to put all my files in my Max6 project structure (patcher, code etc) because for my current project it is more convenient.
    In the famous WritingMaxExternalsInJava.pdf, page 8, I noticed that "Additionally, when loading a patcher file from a directory not in the CLASSPATH mxj will search for Java classes in the directory that contains the patcher and all of its subdirectories."
    So it should find mine (which have been placed automatically by Max6 in subfolder code of my project) but it doesn't ?!
    Any tips ?

    • Sep 06 2013 | 3:45 pm
      Are you placing class files in [project]/patchers? This should work, although AFAIK there's no way to maintain directory structures in any way that the project machinery won't break if you attempt to consolidate the project.
      I have a feeling, actually, that the CLASSPATH is extended to look in [project]/code rather than [project]/patchers, but haven't tested it.
      (FWIW, for Jython and Clojure sources, things get pulled from [project]/other.)