Forums > MaxMSP

problems with mxj~ to include in standalone

April 15, 2008 | 11:28 am

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


April 15, 2008 | 11:47 am

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


April 15, 2008 | 5:29 pm

Hi Owen,

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


April 15, 2008 | 5:40 pm

Hi Owen,

I tried it again but no luck. Any ideas?


April 15, 2008 | 5:56 pm

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


April 15, 2008 | 5:59 pm

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


April 15, 2008 | 6:02 pm

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’


April 15, 2008 | 6:04 pm

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.


April 15, 2008 | 6:17 pm

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


April 15, 2008 | 6:20 pm

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.


April 15, 2008 | 6:21 pm

Hi ej,

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


April 15, 2008 | 6:32 pm

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.


February 13, 2012 | 2:46 pm

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!


August 29, 2012 | 10:19 am

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.



TSt
March 16, 2013 | 8:00 am

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


pm
April 2, 2013 | 2:01 pm

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.



slx
May 4, 2013 | 9:36 pm

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



slx
May 4, 2013 | 10:17 pm

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


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