where to put the the java class in a package ?

nnimar's icon

Hi there,

I have a package with a java-classes folder and put all my .class and .java files but they are not being recognised. Both Max 6 and 7. In Max 6, I did end up putting them in the cycling74>java>classes to make it work. Is this the only solution ? The eijes package works, why not mine ? Something is missing...

Jan M's icon

Hi Nnimar, the java-classes folder should (and does) work in both Max 6 and 7. Did you restart Max after adding the classes? Do your classes belong to any java packages? If yes you need to reproduce the java folder structure inside java-classes: If myClass.class is part of myPkg it needs to be inside "java-classes"/"myPkg"/myClass.class.

Cheers,

Jan

nnimar's icon

Thanks for your answer Jan though it seems there is another issue. I have a package with many (many) folders, extensions, etc that we use to support Max in my University. After a couple of hours of debugging, I found that the java classes stopped being recognised simply after adding an empty folder in the package... I'll send it to support !

Jan M's icon

I see, did you try [; max db.reset] ?