Using MaxLink when building a standalone application

Apr 15, 2009 at 12:05am

Using MaxLink when building a standalone application

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

#43371
Apr 15, 2009 at 2:44am

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

#155551
Apr 15, 2009 at 8:02am

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

#155552
Apr 15, 2009 at 2:12pm

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

#155553
Apr 15, 2009 at 3:48pm

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?

#155554
Apr 15, 2009 at 8:04pm

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

#155555

You must be logged in to reply to this topic.