[java-dev] dynamically loading java classes in a standalone
topher lafata
topher at topher.com
Thu Feb 21 23:33:24 MST 2008
- Previous message: [java-dev] dynamically loading java classes in a standalone
- Next message: [java-dev] dynamically loading java classes in a standalone
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> it takes a long time to load and allocates about 30 Mbytes of > memory. But if I add this line to the max.java.config.txt file: > > max.dynamic.class.dir "/Applications/MaxMSP 4.6/Cycling '74/java/ > classes/BGabcl.jar" > > it loads quickly. Hence the source of my confusion about the > dynamic classpath. > yeah. dont do this. the class directory is for classes not jars. you could do: max.dynamic.jar.dir "/Applications/MaxMSP 4.6/Cycling '74/java/myjars" and put BGabcl.jar in it. I cant say what the behavior of mxj is when you set a dynamic class dir to a jar. suffice it to say that it is undefined. > One final weirdness, if I put the BGabcl.jar file here: > > /Applications/MaxMSP 4.6/Cycling '74/java/lib/ > > with or without an entry in the max.java.config.txt file, it loads > quickly (and works ok!), but I get these errors in the Max window: > > error: java.util.zip.ZipException: No such file or directory > error: at java.util.zip.ZipFile.open(Native Method) > error: at java.util.zip.ZipFile.<init>(ZipFile.java:203) > error: at java.util.zip.ZipFile.<init>(ZipFile.java:84) > there might be something weird in the way your jar is constructed? manifest out of sync? confusion about having that weird dynamic classpath entry point to a jar? i cant say. > I know you've got a lot going on right now, so don't delve into > this too deeply unless something seems obvious to you from the > above description. If I put it in the right dirs, it works fine, > and I'm happy. awesome. ciao t
- Previous message: [java-dev] dynamically loading java classes in a standalone
- Next message: [java-dev] dynamically loading java classes in a standalone
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
