Jitter Mxj Standalone troubles/bug ?

Léopold Frey's icon

Hello,

I can't manage to build a standalone with mxj files using jitter.

Building standalone is fine with standard mxj files

Can anybody try to build the following file :

/Applications/Max5/examples/jitter-examples/java/jitjavagui-example.maxpat

I get those errors :

MXJ System CLASSPATH:
   /Users/leo/Desktop/jitjavagui-example.app/Contents/support/java/lib/jitter.jar
   /Users/leo/Desktop/jitjavagui-example.app/Contents/support/java/lib/jode-1.1.2-pre-embedded.jar
   /Users/leo/Desktop/jitjavagui-example.app/Contents/support/java/lib/max.jar
MXJClassloader CLASSPATH:
   /Users/leo/Desktop/jitjavagui-example.app/Contents/support/java/classes/
newobj: jit.matrix: No such object
java.lang.UnsatisfiedLinkError: _new
    at com.cycling74.jitter.JitterObject._new(Native Method)
    at com.cycling74.jitter.JitterObject.(JitterObject.java:30)
    at com.cycling74.jitter.JitterObject.(JitterObject.java:52)
    at JitterGuiElement.init(JitterGuiElement.java:56)
    at JitterGuiSlider.(JitterGuiSlider.java:19)
(mxj) unable to construct instance of JitterGuiSlider
java.lang.UnsatisfiedLinkError: _new
    at com.cycling74.jitter.JitterObject._new(Native Method)
    at com.cycling74.jitter.JitterObject.(JitterObject.java:30)
    at com.cycling74.jitter.JitterObject.(JitterObject.java:52)
    at JitterGuiElement.init(JitterGuiElement.java:56)
    at JitterGuiSlider.(JitterGuiSlider.java:19)
(mxj) unable to construct instance of JitterGuiSlider
java.lang.UnsatisfiedLinkError: _new
    at com.cycling74.jitter.JitterObject._new(Native Method)
    at com.cycling74.jitter.JitterObject.(JitterObject.java:30)
    at com.cycling74.jitter.JitterObject.(JitterObject.java:52)
    at JitterGuiElement.init(JitterGuiElement.java:56)
    at JitterGuiSlider.(JitterGuiSlider.java:19)
(mxj) unable to construct instance of JitterGuiSlider
Jitter 1.7.0 installed
jit.gl.shader: unable to find CG framework.
mxj: jit.openexr: No such object

Thanks

Leo

Léopold Frey's icon

Hello,

I really need to build an app with java files using jitter.jar.
Can anyone try (and confirm) this bug ?

Thanks

Léo

Max 5.0.7 + Jitter
Mac OS 10.5.8

Léopold Frey's icon

Comparing the max windows in standalone and in maxmsp when opening the jitjava-gui-example I can see that the following line present in maxmsp is missing in the standalone mode :

Jitter Java support installed

Could this the reason why mxj fail to instantiate a jit.matrix ?

(jitter.jar & jitter.framework are included in the standalone)

Thanks

Leo

Emmanuel Jourdan's icon

I can't test right now, but as far as I remember you did to include the externals in the app's bundle. Because there's no way for mxj to know which jitter object you uses, so they are not included.

Léopold Frey's icon

It seems logical, i'll give it a try and let you know

merci

léo

Léopold Frey's icon

incluging jit.matrix works
sorry for the noise
thanks

leo