XML Feeds

.

[java-dev] dynamically loading java classes in a standalone

Brad Garton garton at columbia.edu
Thu Feb 21 11:51:42 MST 2008


Hey gang --

I'm building some standalones (Max 4.6.3, OSX 10.4.11, 2 GHz Intel  
MacBook), and I can get things to work by putting the max.jar file in  
"my.app/Contents/support/java/lib/".  Now I have a large jar file,  
and I put it in "my.app/Contents/support/java/classes/".  The problem  
is that the standalone is treating the jar file as a system jar and  
loading the entire thing into memory at start-up.  I want to add the  
jar to the dynamic classpath so that it will only load the classes I  
need from the jar.

I do this when running MaxMSP by setting the "max.dynamic.class.dir"  
in the "max.java.config.txt" to point to the large jar file.  How can  
I set the dynamic classpath in a standalone?

thanks!

brad



More information about the java-dev mailing list