I wrote some mxj classes using some Java 5 features. I was developing under Windows, and I did not have to change a thing in MAX/MSP in order to immediately use those classes.
However, with the Mac things were different. First, I had to upgrade from Panther to Tiger to even get a 1.5 JVM update. Then, although the JVM installed correctly, and I went into Java Preferences and set it as the default JVM for Apps and Applets, I was still seeing version 1.4.2 when I went into Terminal and typed "java -version", and MAX/MSP was giving me all sorts of ClassLoader-related errors.
So I did some Web searching and found a link (http://jmesnil.net/weblog/2005/05/02/using-java-15-on-mac-o
s-x-tiger/) with specific instructions to get the Mac to use 1.5 as a default. This appeared to work insofar as the Mac Default installation is concerned - "java -version" now reports 1.5, but MAX/MSP is choking on the HellowWorld1.mxt sample path, with error messages saying "could not load bundle" and "Unable to create JVM". I also changed the entry in mxjpreferences.xml to point to 1.5.0, but with the same results.
I'm now kind of regretting my use of 1.5 features, but it would be a major pain to go backwards. Can anyone tell me how to get mxj to use Java 1.5 under Tiger?