XCode and MXJ Again


    Jun 10 2006 | 4:11 pm
    I have found that a pretty reasonable development cycle can work like so using XCode.
    Create an XCode project, adding the mxj.jar and jitter.jar files as necessary. Create one mxj class and any necessary utility and supporting classes. Compile/debug until you get the code right. Compile a .jar file. Save the .jar file (which has utility and supporting classes) to a directory where you also put the .java file for the mxj class you created.
    The rest of the cycle uses the Terminal.
    Modify your .bash_profile file in your home directory by adding:
    export MAX_LIB="/Library/Application Support/Cycling '74/java/lib" export MAXCLASSPATH=$MAX_LIB/max.jar:$MAX_LIB/jode-1.1.2-pre-embedd ed.jar:$MAX_LIB/jitter.jar
    Open a Terminal window and navigate to your development directory.
    compile with something like this:
    javac -cp ".:$MAXCLASSPATH:IgnoGameTool.jar" buf2jmTest.java
    Note the quotes around the classpath string. These are necessary to handle the spaces in the directory paths to the MaxMSP .jar files.
    Once I have the utility and support classes compiled, this gives me a very speedy turnaround while I develop the mxj class.
    Hope this is useful.
    -- Paul
    -- ----- |(*,+,#,=)(#,=,*,+)(=,#,+,*)(+,*,=,#)| -----