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

Jan 24, 2011 at 12:17pm

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

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

#54570
Jan 25, 2011 at 6:21am

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!

#196529
Aug 1, 2011 at 4:42am

Thank you for posting this question/self-answer! I was having a similar issue. Your answer helped me solve it.

#196530
Aug 1, 2011 at 12:38pm

mmmmmmmmmmm…Cycling74 Developers, I gotta say, that Max file browser DB seems like it was such a good idea!

#196531

You must be logged in to reply to this topic.