Any best practices about path, classpath on OSX etc ??

    May 24 2012 | 12:50 pm
    Hi there, I'm still a bit confused about path and mxj. I'd like to use only one folder containing all my project (the new project feature is very nice) Following this, I'd like to include all my java code in this folder (in a subfolder)
    In that case, my code is ok, the compilation too but ... my mxj doesn't find the right class to instantiate :-(
    I let all the mxj compile settings & paths by default.
    Does it mean I HAVE to put all my classes elsewhere ( which would be for instance ... /Library/Application Support/Cycling '74/java/classes ) ? Or should I add my absolute folder path to the CLASSPATH mxj variable ...?

    • May 24 2012 | 2:10 pm
      Go to menu->Options->File preferences-> add a new path to your project with subfolders active. -> now restart max.
      this should do if you wanna use it as a max patch. it is not going to work for max_runtime though. in that case you have to make either a collective or drop all the files in the same folder as your patch file.
    • May 24 2012 | 2:14 pm
      I guess I missed something because I guess we don't have to do that for each project ... I mean, the current place of the current .maxpat containing the mxj should be in the path directly (as ./) no?
    • May 24 2012 | 4:16 pm
      i'm pretty sure the max-search-path is distinct from the max-java-classpath. your class folder needs to be added to the java-classpath.
    • May 24 2012 | 4:31 pm
      Hi Robert, I did that, it works of course. but it would be nice to have that part of the config directly inside the patch in order to make things more self-contained. I am still probably missing something..