Forums > MaxMSP

Using MaxLink when building a standalone application

April 15, 2009 | 12:05 am

Hi everyone,

I’m about ready to finish off and build my application now but I’m a bit confused about what to include in the collective editor. I’m making an audio visualiser that uses jklab’s maxlink to trigger animations in processing. When building the app, is there more to it than clicking ‘Include file’ and then selecting maxlink.jar?

I’ve read the tutorials but I’m still slightly unsure, so was wondering if anyone else has used maxlink in a standalone application and could give me advice?

Hope you can help


April 15, 2009 | 2:44 am

no idea about including jars, but what always works is putting the jar file side by side with your app.


April 15, 2009 | 8:02 am

Now I’m confused. I tried not including the jar file, but now its saying ‘unable to find max.jar. mxj is rendered powerless in its absence.’

What have I done wrong? Sad



Ch
April 15, 2009 | 2:12 pm

Hi,

Right-click on your app, and select ‘show package content’.
then add your JARs and max.jar in "yourApp.app/Contents/support/java/lib", and your classes in "yourApp.app/Contents/support/java/classes".
That should resolve your problem.
Ch


April 15, 2009 | 3:48 pm

Thank you, it does work….. except when I burn the application to a CD. It says ‘Could not load class ‘jk.link’, even though I’ve moved everything into the application folder and burnt that onto the CD as well. What am I missing?



Ch
April 15, 2009 | 8:04 pm

In the ‘maxlink’ folder, there’s a ‘jk’ folder which contains several classes. Copy the ‘jk’ folder to ‘/support/java/classes/’.
Charles


Viewing 6 posts - 1 through 6 (of 6 total)