max.java.config.txt dynamic class dir entries

Jun 14, 2008 at 7:03am

max.java.config.txt dynamic class dir entries

Hi maxmsp

I read Nick Rothwell’s post at http://www.cycling74.com/story/2006/2/6/95056/36615 on configuring Eclipse IDE for MXJ. It says I have to add Java IDE output directories as max.dynamic.class.dir entries in …/Cycling ‘74/java/max.java.config.txt for auto-loading. But what is meant by output directory? I use NetBeans 6.1, but I do some projects in Eclipse, so I’d like to know where to look in both cases.

best regards Todd

#38402
Jun 19, 2008 at 9:52pm

The max.dynamic.class.dir entries need to be where the mxj object can find your .class files wherever Eclipse is configure to put them. The convention in the Max/MSP java folder is to have .class and .java files in the same directory (I think Nick prefers to keep sources and binaries separate).

If I have an eclipse workspace in my home folder:

martinhome
eclipseworkspace
mxjproject
a.java
a.class
b.java
b.class
etc

…I’d put (on Mac OS X) /Users/martinhome/eclipseworkspace/mxjproject as a max.dynamic.class.dir entry

#133919
Jun 21, 2008 at 5:44am

Great, everything works, thanks martinrobinson !

#133920
Sep 14, 2009 at 12:35am

My class path has a folder name with a space in the middle. Max/MSP doesn’t seem to like this. Is there some syntax I can use to include this folder (like the %20 used in url names) or do I have to change it to one word?
Thanks,
Aaron

#133921
Feb 16, 2010 at 11:36pm

@Aaron: This is hopefully a resolved issue by now :) Anyway, (at least if using Windows) the following entry represents a valid format:

max.dynamic.class.dir “< :>/path/containing some spaces”

#133922

You must be logged in to reply to this topic.