How to use custom java classes with mxj
I can't for the life of me figure this one out, i've lost many hours now. I'm looking to add a .jar to the right folder to make mxj find it; but everything I tried has failed. Im on mac, max 7. I tried to paste the .jar but also the .class and .java files in all the folders I could think of.
Links I've tried:
https://cycling74.com/forums/where-do-i-add-javascript-and-java-classes-in-max-7 https://cycling74.com/forums/mxj-jar-files-how-to-load-them-in-max-7 http://compusition.com/writings/maxmsp-eclipse http://www.interactionlab.biz/v2/wp-content/uploads/2010/09/WritingMaxExternalsInJava.pdf and even https://docs.cycling74.com/max7/tutorials/jitterchapter99_appendixd and in any relevant folder in the Resources folder in the Max 7 app contents.
I've tried the javadoc folder for info as suggested in: https://docs.cycling74.com/max5/refpages/max-ref/mxj.html but this seems to be out of date, my javadoc folder is completely different from the one described in the mxj reference.
Clearly I'm totally new to this and quite lost, if anybody could tell me where to place which files for mxj to recognise them I would be very thankful!
Is anyone using custom java classes on Max 7 in OSX?
Have you tried to read this link ? https://cycling74.com/forums/dynamically-loading-java-classes-in-a-standalone/
"programfiles/cycling74/max 6.1/Cycling74/java/lib"
The folder is located here, keep in mind this is on windows and with max6 so it might be different for you.
Hey guys, thanks for helping me out! Unfortunately, @Cuongit's link is more about including java classes in a standalone, and the poster had already found where to put his java files since he's asking about how not to load them into memory at start-up. It's also from 2008 and not really up to date.
@Luvulongtime thank you for your suggestion, I tried the equivalent 'Cycling '74' folders (in Application Support and in Programs), creating the java and lib folders myself but no luck.
Hey Menno! Did you managed to resolve this issue? I suddenly find myself in similar situation and cannot make Max execute java, MXJ can't find .jar .class .java
Thanks
My suggestion is that you create a new package:
in your "Max 7/Packages/" folder, create a new folder and give it a name of your choosing
create a subfolder inside of it called "java-classes"
Then place your Java classes in that "java-classes" folder.
More about creating packages, if you needed it, can be found @ https://cycling74.com/tutorials/package-authoring-an-introduction
And a complete listing of the special folders in a package is in this documentation: https://docs.cycling74.com/max7/vignettes/packages