mxj, where to store associated files (ie .xml) in relation to the bin directory?


    Jan 24 2011 | 12:17 pm
    Hey,
    I am attempting to make an mxj object that requires access to a .xml file as a configuration / initialization thing.
    I am building the object in Eclipse, and obviously having the .xml in the same structure as the eclipse project enables the compiler to see the file fairly easily.
    It is when I move to Max - point the max.dynamic.class.dir class path to my bin directory - that Max can't see my associated .xml file.
    I'm getting a java.io.FileNotFoundException: configxmly.xml (No such file or directory)
    I tried putting the file in the bin directory itself, in the parent folder, and even in the Java section of the Cycling 74 file path.
    Anyhelp, is really appreciated, thanks a lot
    Tim

    • Jan 25 2011 | 6:21 am
      Well I solved it myself, and I do look a bit foolish - it was quite simple.
      I used the MaxSystem.locateFile call.
      At least this post will remain for people to search in the future!
    • Aug 01 2011 | 4:42 am
      Thank you for posting this question/self-answer! I was having a similar issue. Your answer helped me solve it.
    • Aug 01 2011 | 12:38 pm
      mmmmmmmmmmm...Cycling74 Developers, I gotta say, that Max file browser DB seems like it was such a good idea!