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
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!
Thank you for posting this question/self-answer! I was having a similar issue. Your answer helped me solve it.
mmmmmmmmmmm…Cycling74 Developers, I gotta say, that Max file browser DB seems like it was such a good idea!
Log in to reply
C74 IN YOUR INBOX
C74 RSS Feed | © Copyright Cycling '74 | Terms & Conditions
Let us tell you about notable Max projects, obscure facts, and creative media artists of all kinds.