problems with mxj~ to include in standalone

Apr 15, 2008 at 11:28am

problems with mxj~ to include in standalone

Hi There,

I have some problems with the mxj~ object to include it in a standalone.

When I build the standalone and run it, it will give me the following message in the max window of the standalone:

(mxj) Unable to resolve path of max.jar!mjx is rendered powerless.
•error: Unable to create JVM

I tried to include the classes and java files in the build but no luck.

After this I tried to open de standalone and place the apropiate files in the support folder but no luck there either.

Does anyone have an idea how to resolve this problem?

Im on a macbook pro running 10.4.11 and the latest maxmsp-jitter.

Thanx

#36933
Apr 15, 2008 at 11:47am

Hi,

I think you need to put max.jar into

/Contents/support/java/lib/


Owen

danny de graan wrote:
> Hi There,
>
> I have some problems with the mxj~ object to include it in a
> standalone.
>
> When I build the standalone and run it, it will give me the following
> message in the max window of the standalone:
>
> (mxj) Unable to resolve path of max.jar!mjx is rendered powerless.
> •error: Unable to create JVM
>
> I tried to include the classes and java files in the build but no
> luck.
>
> After this I tried to open de standalone and place the apropiate
> files in the support folder but no luck there either.
>
> Does anyone have an idea how to resolve this problem?
>
> Im on a macbook pro running 10.4.11 and the latest maxmsp-jitter.
>
>

#127135
Apr 15, 2008 at 5:29pm

Hi Owen,

I thought I did but will try it again. Thanx for replying.

#127136
Apr 15, 2008 at 5:40pm

Hi Owen,

I tried it again but no luck. Any ideas?

#127137
Apr 15, 2008 at 5:56pm

Hi Danny,

Have you verified that it’s there by checking in the finder? (contextual
menu > show package contents)


Owen

danny de graan wrote:
> Hi Owen,
>
> I tried it again but no luck. Any ideas?
>
>
>
> –
> – Danny -
>

#127138
Apr 15, 2008 at 5:59pm

On 15 avr. 08, at 13:47, Owen Green wrote:
> Hi,
>
> I think you need to put max.jar into
>
> /Contents/support/java/lib/

Did you copy max.java.config.txt too?

ej

#127139
Apr 15, 2008 at 6:02pm

Hi Owen,

Yes, but I place them there manually by copying them and create a folder in the support folder.

If I build the app I also tried to include the files but no luck there either.

The story gets even worse because now when I load the patch into maxmsp I get a whole bunch of errors. This morning there were no problems.

This is the error report:

• error: java.lang.OutOfMemoryError
• error: at java.util.zip.ZipFile.open(Native Method)
• error: at java.util.zip.ZipFile.(ZipFile.java:203)
• error: at java.util.zip.ZipFile.
(ZipFile.java:234)
• error: at com.cycling74.max.MXJClassLoaderImpl.loadJarData(MXJClassLoaderImpl.java:432)
• error: at com.cycling74.max.MXJClassLoaderImpl.look_for_class_recursive(MXJClassLoaderImpl.java:273)
• error: at com.cycling74.max.MXJClassLoaderImpl.look_for_class_recursive(MXJClassLoaderImpl.java:290)
• error: at com.cycling74.max.MXJClassLoaderImpl.look_for_class_recursive(MXJClassLoaderImpl.java:290)
• error: at com.cycling74.max.MXJClassLoaderImpl.lookupClassData(MXJClassLoaderImpl.java:176)
• error: at com.cycling74.max.MXJClassLoaderImpl.doLoadClass(MXJClassLoaderImpl.java:111)
• error: at com.cycling74.max.MXJClassLoader.loadClazz(MXJClassLoader.java:88)
• error: Could not load class ‘envfollow’

#127140
Apr 15, 2008 at 6:04pm

Hi ej,

No, I didn’t. Where do I need to place this? And how do I place it?

I did it manually but don’t know if this the correct way.

#127141
Apr 15, 2008 at 6:17pm

On 15 avr. 08, at 20:04, danny de graan wrote:

> Hi ej,
>
> No, I didn’t. Where do I need to place this? And how do I place it?
>
> I did it manually but don’t know if this the correct way.

Copy the all C74:/java folder inside your myApp.app/Contents/support/.
This should work.

ej

#127142
Apr 15, 2008 at 6:20pm

Hi EJ,

I found the file and I think I understand what is going on.

The error I posted 2 posts ago happened because I had a [standalone] and a [onecopy] in the patch. It gave me that strange error…no idea why. However, I removed the files and now everything works again.

I wil now look into max.java.config.txt file.

#127143
Apr 15, 2008 at 6:21pm

Hi ej,

Do I need to configure the max.java.config.txt file or leave it like it is?

#127144
Apr 15, 2008 at 6:32pm

Hi ej,

It works! Thanx a million.

The only thing I didn’t do is place a [standalone] in the patch while I was building. Will experiment with it a little but now it works well.

Thanx again.

#127145
Feb 13, 2012 at 2:46pm

Hi fellow Maxers,

I try to build a standalone with Max 6 (Windows 7) and get the same error as mentioned above:

(mxj) Unable to resolve path of max.jar!mjx is rendered powerless.
•error: Unable to create JVM

I tried copying the Cycling’74/Max6.0/Cycling’74/java folder in the standalone support folder, but without success.

Does anyone know how to solve this?

Cheers!

#127146
Aug 29, 2012 at 10:19am

It would be nice to hear what you did and how you made it work; I have this issue with max 5 on mac, but all the threads I read about it say the same thing: copy to the content/support/java folder, to no avail…

I wish when people say ‘it works now’ they actually post the fix or answer; I thought that was part of basic forum etiquette.

#127147
Mar 16, 2013 at 8:00am

und ich schließe mich ebenfalls dieser Problematik an und: bitte keine Ausflüchte sondern vernünftige Lösungsansätze es ist schon genug Zeit vertan worden!

of course rtfm, google and other search_topics here in the forum I tried these, but no positive results

but now this issue: actually under xp home sp3, Max ver.6.0.8 installed is:
java version “1.7.0_13″
Java(TM) SE Runtime Environment (build 1.7.0_13-b20)
Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode, sharing)

(also the newer ver. shows the same mistakes!) if I want open e.g. several mxj mxj~ tutorial-patches (we don’t read at this time about the self developed mxj mxj~ which works well under MaxMsp ver.4.6.3)

Max window alerts:(mxj) unable to find max.jar! mxj is rendered powerless in its absence
unable to create JVM

in the attachment: mxjpreferences.xml, max.java.config.txt from this Max ver. 6.0.8

thanks for help and solutions

Attachments:
  1. mxjpreferences.xml
#127148
Apr 2, 2013 at 2:01pm

I have the same problem here. Building an app containing java worked with Max 5, but not now with Max 6.1.
Even if I tried putting C74 java folder inside the app, it still gives me this :
(mxj) Unable to resolve path of max.jar! mxj is rendered powerless.
Unable to create JVM

Any help is welcome.

#127149
May 4, 2013 at 9:36pm

Hi,

I have the same problem. I followed the solution from Emmanuel Jourdan but had no luck. I try to build a standalone with max 6.0.8 n mac 10.6.8. and want to include a java class file (mxj object).

Does anyone knows a solution?

best,
slx

#127150
May 4, 2013 at 10:17pm

Oh, I think I solved it. Before building open the inspector of the standalone object and check the box of the setting called “Make Application Subfolder Search Path”. Then after building the app do what Emmanuel said -> copy the java folder (put e.g. your java class file into the class folder inside the java folder) from Applications/Max6/Cycling ’74 to myApp.app/Contents/support/.

Best,
slx

#127151

You must be logged in to reply to this topic.