Using MaxLink when building a standalone application

musicalfruit's icon

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

Roman Thilenius's icon

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

musicalfruit's icon

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?

ch's icon

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

musicalfruit's icon

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's icon

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