Forums > Java

Can't load any mxj with Max 5.1.7 and leopard snow


Ad.
March 14, 2011 | 7:59 pm

Hi,
Still same issue with Snow leopard 10.6.4, java 1.6.0_24 and max 5.1.7.
Here’s what max says:

(mxj) attempting to to set java version to 1.6.0_24
MXJ System CLASSPATH:
/Applications/Max5/Cycling ’74/java/lib/jitter.jar
/Applications/Max5/Cycling ’74/java/lib/jode-1.1.2-pre-embedded.jar
/Applications/Max5/Cycling ’74/java/lib/max.jar
/Applications/Max5/Cycling ’74/java/lib/MSAFluid.jar
/Applications/MAX5/Cycling ’74/java/lib/jitter.jar
/Applications/MAX5/Cycling ’74/java/lib/jode-1.1.2-pre-embedded.jar
/Applications/MAX5/Cycling ’74/java/lib/max.jar
/Applications/MAX5/Cycling ’74/java/lib/MSAFluid.jar
/Applications/MAX5/Cycling ’74/java/classes
MXJClassloader CLASSPATH:
/Applications/Max5/Cycling ’74/java/classes/
/Applications/MAX5/Cycling ’74/java/classes
/Applications/MAX5/Cycling ’74/java/lib/jitter.jar
/Applications/MAX5/Cycling ’74/java/lib/jode-1.1.2-pre-embedded.jar
/Applications/MAX5/Cycling ’74/java/lib/max.jar
/Applications/MAX5/Cycling ’74/java/lib/MSAFluid.jar
Unable to create JVM

and 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 "/Applications/MAX5/Cycling ’74/java/lib"

; add /Users/topher/foo to the system classpath i.e. immutable classpath ;
max.system.class.dir "/Applications/MAX5/Cycling ’74/java/classes"

; 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 "/Applications/MAX5/Cycling ’74/java/classes"

; add all jars in /Users/topher/myjars to the dynamic classpath of MXJClassLoader;
max.dynamic.jar.dir "/Applications/MAX5/Cycling ’74/java/lib"

; specify some jvm options ;
max.jvm.option -Xincgc
max.jvm.option -Xms64m
max.jvm.option -Xmx256m
max.java.jvm.version 1.6.0_24
; 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 ;

And recompiling the *.java doesn’ change anything, for instance:
javac -classpath "/Applications/Max5/Cycling ’74/java/lib/max.jar" now.java

I don’t knwow what else to do.
Reinstall max doesn’t change anything.
And right away, it does work with max 4.6 on the same machine………

Anyone would have some clues ?
Thx.
Ad


April 7, 2011 | 1:06 pm

We were experiencing this problem as well on the Mac last night. We used Application->Utilities->Console, clear it and re-run max. We found there were some strange pro-tool drivers that were messing up and crashing our system. Also, it was having trouble reading our defines in the Max.config file (perhaps some pesky unicode characters snuck into the file). We saw that java complained it couldn’t understand a define, and failed to load the MXJClassLoader.



TSt
March 15, 2013 | 2:46 am

ich schließe mich dieser Problematik an!

in my system xp home sp3 under MaxMsp Jitter 4.6.3 mxj mxj~ works without any problems
but if I tried to using now Max-Gen ver.6.0.8 the same problem

"unable to create JVM" etc.and no MXJ-paths are list on startup in the Max-window

here’s the max.java.config.txt

any help and solutions are welcome

; 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;

max.system.jar.dir "C:/programme/Cycling ’74/Max 6.0/Cycling ’74/java/lib"

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

max.system.class.dir "C:/programme/Cycling ’74/Max 6.0/Cycling ’74/java/classes"

; 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 ;

max.dynamic.class.dir "C:/programme/Cycling ’74/Max 6.0/Cycling ’74/java/classes"

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

max.dynamic.jar.dir "C:/programme/Cycling ’74/Max 6.0/Cycling ’74/java/lib"

;max.system.jar.dir "C:/programme/Java/jre6";
max.system.jar.dir "C:/programme/Java/jdk1.7.0_13/bin/javac.exe"

;max.dynamic.class.dir "C:/Audio-f/java_prj/bin";
;max.dynamic.class.dir "C:/Audio-f/java_prj/src";

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

; 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 ;


March 15, 2013 | 11:04 am

javac.exe doesn’t look like a max.system.jar.dir to me…



TSt
March 15, 2013 | 12:46 pm

Nick, thank you for your reply

but, ist the syntax wrong or what? this is the max.java.config.txt which works well with MaxMsp 4.6.3 in xp home sp3,
but not in Max ver.6 – funny!

for information: I’ve tested Java in MaxMsp 4.6.3 under my 10.5.8-osx-system,
sure: at first I’ve recompile all written java-mxj’s etc and it seems ok
with software-update I’ve update the jdk to ver.1.6.0 and the terminal shows the java-version correctly

but if I try to load e.g. a patcher which includes several mxj I’ve got in the Max-window this:

(excerpt)

MXJ System CLASSPATH:
/Applications/MaxMSP 4.6/Cycling ’74/java/lib/circuit.jar
/Applications/MaxMSP 4.6/Cycling ’74/java/lib/core.jar
/Applications/MaxMSP 4.6/Cycling ’74/java/lib/dfilter.jar
/Applications/MaxMSP 4.6/Cycling ’74/java/lib/ej.jar
/Applications/MaxMSP 4.6/Cycling ’74/java/lib/fourier.jar
/Applications/MaxMSP 4.6/Cycling ’74/java/lib/ftmjava.jar
/Applications/MaxMSP 4.6/Cycling ’74/java/lib/javazoom.jar
/Applications/MaxMSP 4.6/Cycling ’74/java/lib/jitter.jar
/Applications/MaxMSP 4.6/Cycling ’74/java/lib/jode-1.1.2-pre-embedded.jar
/Applications/MaxMSP 4.6/Cycling ’74/java/lib/loadedstring.jar
/Applications/MaxMSP 4.6/Cycling ’74/java/lib/max.jar
/Applications/MaxMSP 4.6/Cycling ’74/java/lib/physics.jar
/Applications/MaxMSP 4.6/Cycling ’74/java/lib/circuit.jar
/Applications/MaxMSP 4.6/Cycling ’74/java/lib/core.jar
/Applications/MaxMSP 4.6/Cycling ’74/java/lib/dfilter.jar
/Applications/MaxMSP 4.6/Cycling ’74/java/lib/ej.jar
/Applications/MaxMSP 4.6/Cycling ’74/java/lib/fourier.jar
/Applications/MaxMSP 4.6/Cycling ’74/java/lib/ftmjava.jar
/Applications/MaxMSP 4.6/Cycling ’74/java/lib/javazoom.jar
/Applications/MaxMSP 4.6/Cycling ’74/java/lib/jitter.jar
/Applications/MaxMSP 4.6/Cycling ’74/java/lib/jode-1.1.2-pre-embedded.jar
/Applications/MaxMSP 4.6/Cycling ’74/java/lib/loadedstring.jar
/Applications/MaxMSP 4.6/Cycling ’74/java/lib/max.jar
/Applications/MaxMSP 4.6/Cycling ’74/java/lib/physics.jar
MXJClassloader CLASSPATH:
/Applications/MaxMSP 4.6/Cycling ’74/java/classes/
/Applications/MaxMSP 4.6/Cycling ’74/java/classes
Jitter Java support installed
Lobjects for Max © Regents of the University of California.
matrix v4.6 OSX/i386: ©2001,2003, 2006 by Panaiotis. All Rights Reserved
–> multictrl v5.0 float OSX PPC: ©1994-2008 by Panaiotis All Rights Reserved
 multijoin v4.2: PPC/OSX ©2001-2004 by Panaiotis. All Rights Reserved
Copyright © 2006 Panpot Zorglub GMEM Marseille F

Rand: seedable random number generators (version 1.03)
Rand: Copyright © 1994-2004 by Gary Lee Nelson

Tap.Tools Pro – Welcome…
version 2.3.1
http://www.electrotap.com

vst~: can’t find plug-in, using default
The 1 parameter of Default is:
P1
• error: java.lang.UnsupportedClassVersionError: Bad version number in .class file
• error: at java.lang.ClassLoader.defineClass1(Native Method)
• error: at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
• error: at com.cycling74.max.MXJClassLoaderImpl.doLoadClass(MXJClassLoaderImpl.java:119)
• error: at com.cycling74.max.MXJClassLoader.loadClazz(MXJClassLoader.java:88)
• error: Could not load class ‘tst_Shapes_01b’
• error: java.lang.UnsupportedClassVersionError: Bad version number in .class file
• error: at java.lang.ClassLoader.defineClass1(Native Method)
• error: at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
• error: at com.cycling74.max.MXJClassLoaderImpl.doLoadClass(MXJClassLoaderImpl.java:119)
• error: at com.cycling74.max.MXJClassLoader.loadClazz(MXJClassLoader.java:88)
• error: Could not load class ‘tst_chua_03_rs’
• error: java.lang.UnsupportedClassVersionError: Bad version number in .class file
• error: at java.lang.ClassLoader.defineClass1(Native Method)
• error: at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
• error: at com.cycling74.max.MXJClassLoaderImpl.doLoadClass(MXJClassLoaderImpl.java:119)
• error: at com.cycling74.max.MXJClassLoader.loadClazz(MXJClassLoader.java:88)
• error: Could not load class ‘tst_chua_03_rs’
• error: java.lang.UnsupportedClassVersionError: Bad version number in .class file
• error: at java.lang.ClassLoader.defineClass1(Native Method)
• error: at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
• error: at com.cycling74.max.MXJClassLoaderImpl.doLoadClass(MXJClassLoaderImpl.java:119)
• error: at com.cycling74.max.MXJClassLoader.loadClazz(MXJClassLoader.java:88)
• error: Could not load class ‘tst_v_d_pol_mx_00l’
• error: java.lang.UnsupportedClassVersionError: Bad version number in .class file
• error: at java.lang.ClassLoader.defineClass1(Native Method)
• error: at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
• error: at com.cycling74.max.MXJClassLoaderImpl.doLoadClass(MXJClassLoaderImpl.java:119)
• error: at com.cycling74.max.MXJClassLoader.loadClazz(MXJClassLoader.java:88)
• error: Could not load class ‘tst_v_d_pol_mx_00j’
• error: java.lang.UnsupportedClassVersionError: Bad version number in .class file
• error: at java.lang.ClassLoader.defineClass1(Native Method)
• error: at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
• error: at com.cycling74.max.MXJClassLoaderImpl.doLoadClass(MXJClassLoaderImpl.java:119)
• error: at com.cycling74.max.MXJClassLoader.loadClazz(MXJClassLoader.java:88)
• error: Could not load class ‘tst_v_d_pol_mx_00i’
• error: java.lang.UnsupportedClassVersionError: Bad version number in .class file
• error: at java.lang.ClassLoader.defineClass1(Native Method)
• error: at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
• error: at com.cycling74.max.MXJClassLoaderImpl.doLoadClass(MXJClassLoaderImpl.java:119)
• error: at com.cycling74.max.MXJClassLoader.loadClazz(MXJClassLoader.java:88)
• error: Could not load class ‘tst_v_d_pol_mx_00h’
• error: java.lang.UnsupportedClassVersionError: Bad version number in .class file
• error: at java.lang.ClassLoader.defineClass1(Native Method)
• error: at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
• error: at com.cycling74.max.MXJClassLoaderImpl.doLoadClass(MXJClassLoaderImpl.java:119)
• error: at com.cycling74.max.MXJClassLoader.loadClazz(MXJClassLoader.java:88)
• error: Could not load class ‘tst_v_d_pol_mx_00g’
• error: java.lang.UnsupportedClassVersionError: Bad version number in .class file
• error: at java.lang.ClassLoader.defineClass1(Native Method)
• error: at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
• error: at com.cycling74.max.MXJClassLoaderImpl.doLoadClass(MXJClassLoaderImpl.java:119)
• error: at com.cycling74.max.MXJClassLoader.loadClazz(MXJClassLoader.java:88)
• error: Could not load class ‘smc_v_d_pol_1′
• error: java.lang.UnsupportedClassVersionError: Bad version number in .class file
• error: at java.lang.ClassLoader.defineClass1(Native Method)
• error: at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
• error: at com.cycling74.max.MXJClassLoaderImpl.doLoadClass(MXJClassLoaderImpl.java:119)
• error: at com.cycling74.max.MXJClassLoader.loadClazz(MXJClassLoader.java:88)
• error: Could not load class ‘musical_chua_01′
• error: java.lang.UnsupportedClassVersionError: Bad version number in .class file
• error: at java.lang.ClassLoader.defineClass1(Native Method)
• error: at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
• error: at com.cycling74.max.MXJClassLoaderImpl.doLoadClass(MXJClassLoaderImpl.java:119)
• error: at com.cycling74.max.MXJClassLoader.loadClazz(MXJClassLoader.java:88)
• error: Could not load class ‘tst_MaxwellBloch_00e’
• error: java.lang.UnsupportedClassVersionError: Bad version number in .class file
• error: at java.lang.ClassLoader.defineClass1(Native Method)
• error: at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
• error: at com.cycling74.max.MXJClassLoaderImpl.doLoadClass(MXJClassLoaderImpl.java:119)
• error: at com.cycling74.max.MXJClassLoader.loadClazz(MXJClassLoader.java:88)
• error: Could not load class ‘tst_MaxwellBloch_00g’
• error: java.lang.UnsupportedClassVersionError: Bad version number in .class file
• error: at java.lang.ClassLoader.defineClass1(Native Method)
• error: at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
• error: at com.cycling74.max.MXJClassLoaderImpl.doLoadClass(MXJClassLoaderImpl.java:119)
• error: at com.cycling74.max.MXJClassLoader.loadClazz(MXJClassLoader.java:88)
• error: Could not load class ‘tst_MaxwellBloch_00h’
nth object V1.32 (UB) – s.lemouton – IRCAM – 23/01/96-19/11/2006
nth limité à 512 éléments
Aug 17 2006  03:00:58  00018aefd a-hv © a n d r é s i e r 2 0 0 4 all rights reserved
A-Chaos Lib :: a-henon Jun 30 2006 00:46:47 © a n d r é s i e r 2 0 0 4 all rights reserved
A-Chaos Lib :: a-henon_heilles Jun 30 2006 00:47:32 © a n d r é s i e r 2 0 0 4 all rights reserved
A-Chaos Lib :: a-fibonacci Jun 30 2006 01:00:07 © a n d r é s i e r 2 0 0 4 all rights reserved
• warning: outlet_add: already in table
A-Chaos Lib :: a-duffing Jun 30 2006 00:44:32 © a n d r é s i e r 2 0 0 4 all rights reserved
coll: finished, 8 lines
coll: finished, 10 lines
• error: java.lang.UnsupportedClassVersionError: Bad version number in .class file
• error: at java.lang.ClassLoader.defineClass1(Native Method)
• error: at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
• error: at com.cycling74.max.MXJClassLoaderImpl.doLoadClass(MXJClassLoaderImpl.java:119)
• error: at com.cycling74.max.MXJClassLoader.loadClazz(MXJClassLoader.java:88)
• error: Could not load class ‘tst_chua_03_rs’
· bezier · jasch · May 8 2009 · © all rights reserved
Jul 4 2007  19:55:47  00019a84d a-lissa © a n d r é s i e r 2 0 0 4 all rights reserved
series: 0 1 1.000000

Attachments:
  1. mxjpreferences.xml

Viewing 5 posts - 1 through 5 (of 5 total)