MXJ Does't work with MAX 5

Oct 28, 2010 at 5:04pm

MXJ Does't work with MAX 5

I have a serious issue with max 5 and MXJ… nothing works.

max always says: “Unable to create JVM”

Although it does work with max 4.6…

Here’s the max.java.config.txt:

; This is the config used by Max when instantiating the JVM ;
; Comments are enclosed within 2 semicolons ;

; The file format is relatively fragile so pay attention ;
; when editing this file !! ;

; some example options one may use ;

; add all jars in /Users/topher/java/lib to the system classpath i.e. immutable classpath ;
; max.system.jar.dir /Users/topher/java/lib;

; add /Users/topher/foo to the system classpath i.e. immutable classpath ;
; max.system.class.dir /Users/topher/foo ;

; these next 2 are typically what you would want to use if you want additional directories ;
; added to your classpath for max ;

; add /Users/topher/myclasses to the dynamic classpath of MXJClassLoader ;
; max.dynamic.class.dir /Users/topher/myclasses ;

; add all jars in /Users/topher/myjars to the dynamic classpath of MXJClassLoader ;
;max.dynamic.jar.dir /Users/topher/myjars ;

; specify some jvm options ;
max.jvm.option -Xincgc
max.jvm.option -Xms64m
max.jvm.option -Xmx256m

; uncomment these options(i.e. remove surrounding semi colons ;
; to cause the JVM to be created ;
; in debug mode and listening for remote debugger connections ;
; on port 8074. This would enable you to interactively debug ;
; your mxj code using JDB or some other debugger which supports ;
; the JDI wire protocol ;

; max.jvm.option -Xdebug ;
; max.jvm.option -Xnoagent ;
; max.jvm.option -Xrunjdwp:transport=dt_socket,address=8074,server=y,suspend=n ;
; max.jvm.option -XX:-UseSharedSpaces ;

; max.dynamic.class.dir /moi/Mes_patchs_Jitter_patches/fluid_particle_simulation/ ;
; max.dynamic.jar.dir /moi/Mes_patchs_Jitter_patches/fluid_particle_simulation/;
; max.dynamic.class.dir /MaxGoogleTalk/bin ;
; ; max.dynamic.jar.dir /MaxGoogleTalk/bin ;

Max5/Cycling74/java/mxjpreferences.xml doesn’t exist ! Would it be the solution of my problems ?

10.5 last version of max 5.

Thx,
Ad.

#52980
Oct 29, 2010 at 7:06am

So if you type mxj into a new object, ignore the error, and get help on mxj; what happens?
Are you tying to run stuff from fluid_particle or maxgoogletalk? They are commented out? . . .
More info needed?

#190544
Oct 30, 2010 at 8:34am

When I try to get the help, it gives mxj general help nothing else, no link to my object…
And yes I discover the problem in trying to run fluid-particle…
Don’t know what to do…
What do you mean by conmmented out ?
Thx fo your help;
Ad,

#190545
Nov 1, 2010 at 6:49am

can you give more details about your system?

#190546
Nov 1, 2010 at 10:48am

Leopard 10.5.8, macbookpro
JavaVM 12.6.0
GeForce 8600M GT:
-ad-

#190547
Nov 2, 2010 at 6:55am

open your terminal and type
java -version

what is the version that is printed?

might be that you need to update java?

#190548
Nov 2, 2010 at 8:34am

Hi
This part

; max.dynamic.class.dir /moi/Mes_patchs_Jitter_patches/fluid_particle_simulation/ ;
; max.dynamic.jar.dir /moi/Mes_patchs_Jitter_patches/fluid_particle_simulation/;
; max.dynamic.class.dir /MaxGoogleTalk/bin ;
; ; max.dynamic.jar.dir /MaxGoogleTalk/bin ;

which would add all the enclosed classes and jars to the search path; except they are commented out as per

; This is the config used by Max when instantiating the JVM ;
; Comments are enclosed within 2 semicolons ;

Whit the help thing if a window came up doing animated text and fades etc, then MXJ is fine, read up a bit more on its setup and paths and the requirements of the fluid particle simulation package

Cheers
MM

#190549

You must be logged in to reply to this topic.