Forums > Java

mxj in standalones question

November 16, 2006 | 4:19 pm

Hi everybody,

I’m trying to build a standalone Max app with mxj net.mail.send.

I get errors about the JVM missing etc.

I found this in the archives:

manually put max.jar in:
{standalonepackage}/Contents/MacOS/Resources/java/lib

and put maxhole.class in:
{standalonepackage}/Contents/MacOS/Resources/java/classes/ne t

see if that works.

topher

So I need to put max.jar, mail.jar and activation.jar in
{standalonepackage}/Contents/MacOS/Resources/java/lib
and then it should work? Any other things I need to do?

Cheers.

Zip


November 16, 2006 | 4:39 pm

I just tried installing activation.jar. mail.jar, and max.jar in myapp/Contents/Resources/java(I’ve made the java folder myself),
but now I get:

(mxj) max.java.config.txt is not present. Using default JVM options.
MXJ System CLASSPATH:
/Volumes/ZIPOD/GM Versie 2 Map/max.jar
MXJClassloader CLASSPATH:
/Volumes/ZIPOD/classes/
(mxj classloader) dynamic classpath entry /Volumes/ZIPOD/classes/ does not exist.
? error: Could not load class ‘list.Replace’
? error: Could not load class ‘list.Replace’
? error: Could not load class ‘list.Replace’
? error: Could not load class ‘list.Replace’
? error: Could not load class ‘list.Replace’
? error: Could not load class ‘list.Replace’
? error: Could not load class ‘net.mail.send’

What do I do now? Is there an easier way to incorporate mxj stuff in standalones?

Best,

Zip


November 16, 2006 | 5:09 pm

> ? error: Could not load class ‘list.Replace’
> ? error: Could not load class ‘list.Replace’
> ? error: Could not load class ‘list.Replace’
> ? error: Could not load class ‘list.Replace’
> ? error: Could not load class ‘list.Replace’
> ? error: Could not load class ‘list.Replace’
> ? error: Could not load class ‘net.mail.send’
>
> What do I do now?

you need to put list/Replace.class and net/mail/send.class somewhere
in your standalone’s search path.

> Is there an easier way to incorporate mxj stuff in standalones?

not currently.

Ben


November 16, 2006 | 7:19 pm

you need to make the directory

> myapp/Contents/Resources/java/lib
and
> myapp/Contents/Resources/java/classes

put the jars in lib and your classes in classes and it should work.
for package classes make sure you preserve the package directory
structure.

> myapp/Contents/Resources/java/classes/list/Replace.class

hope this helps.
topher

On Nov 16, 2006, at 08:39 AM, Zip Boterbloem wrote:

>
> I just tried installing activation.jar. mail.jar, and max.jar in
> myapp/Contents/Resources/java(I’ve made the java folder myself),
> but now I get:
>
> (mxj) max.java.config.txt is not present. Using default JVM options.
> MXJ System CLASSPATH:
> /Volumes/ZIPOD/GM Versie 2 Map/max.jar
> MXJClassloader CLASSPATH:
> /Volumes/ZIPOD/classes/
> (mxj classloader) dynamic classpath entry /Volumes/ZIPOD/classes/
> does not exist.
> ? error: Could not load class ‘list.Replace’
> ? error: Could not load class ‘list.Replace’
> ? error: Could not load class ‘list.Replace’
> ? error: Could not load class ‘list.Replace’
> ? error: Could not load class ‘list.Replace’
> ? error: Could not load class ‘list.Replace’
> ? error: Could not load class ‘net.mail.send’
>
> What do I do now? Is there an easier way to incorporate mxj stuff
> in standalones?
>
> Best,
>
> Zip
>


November 17, 2006 | 12:44 pm

Thanks for your replies, Ben & Topher!

I’ve include the classes etc. as per your instrusctions, but now I get:

(mxj) max.java.config.txt is not present. Using default JVM options.
MXJ System CLASSPATH:
/Volumes/ZIPOD/GM Versie 2 Map/max.jar
MXJClassloader CLASSPATH:
/Volumes/ZIPOD/classes/
(mxj classloader) dynamic classpath entry /Volumes/ZIPOD/classes/ does not exist.
? error: java.lang.NoClassDefFoundError: list/ListProcessor
? error: at java.lang.ClassLoader.defineClass1(Native Method)
? error: at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
? 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 ‘list.Replace’
? error: java.lang.NoClassDefFoundError: list/ListProcessor
? error: at java.lang.ClassLoader.defineClass1(Native Method)
? error: at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
? 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 ‘list.Replace’
? error: java.lang.NoClassDefFoundError: list/ListProcessor
? error: at java.lang.ClassLoader.defineClass1(Native Method)
? error: at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
? 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 ‘list.Replace’
? error: java.lang.NoClassDefFoundError: list/ListProcessor
? error: at java.lang.ClassLoader.defineClass1(Native Method)
? error: at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
? 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 ‘list.Replace’
? error: java.lang.NoClassDefFoundError: list/ListProcessor
? error: at java.lang.ClassLoader.defineClass1(Native Method)
? error: at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
? 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 ‘list.Replace’
? error: java.lang.NoClassDefFoundError: list/ListProcessor
? error: at java.lang.ClassLoader.defineClass1(Native Method)
? error: at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
? 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 ‘list.Replace’


November 17, 2006 | 3:35 pm

Hi Zip,

The errors are clear – the java engine can’t find your list.Replace
class. As Topher said, you have to make sure you maintain the
directory structure for the classes you’re using. Specifically that
means you need ZIPOD/classes/list/Replace.class.

Ben

On 11/17/06, Zip Boterbloem wrote:
>
> Thanks for your replies, Ben & Topher!
>
> I’ve include the classes etc. as per your instrusctions, but now I get:
>
> (mxj) max.java.config.txt is not present. Using default JVM options.
> MXJ System CLASSPATH:
> /Volumes/ZIPOD/GM Versie 2 Map/max.jar
> MXJClassloader CLASSPATH:
> /Volumes/ZIPOD/classes/
> (mxj classloader) dynamic classpath entry /Volumes/ZIPOD/classes/ does not exist.
> ? error: java.lang.NoClassDefFoundError: list/ListProcessor
> ? error: at java.lang.ClassLoader.defineClass1(Native Method)
> ? error: at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> ? 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 ‘list.Replace’
> ? error: java.lang.NoClassDefFoundError: list/ListProcessor
> ? error: at java.lang.ClassLoader.defineClass1(Native Method)
> ? error: at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> ? 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 ‘list.Replace’
> ? error: java.lang.NoClassDefFoundError: list/ListProcessor
> ? error: at java.lang.ClassLoader.defineClass1(Native Method)
> ? error: at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> ? 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 ‘list.Replace’
> ? error: java.lang.NoClassDefFoundError: list/ListProcessor
> ? error: at java.lang.ClassLoader.defineClass1(Native Method)
> ? error: at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> ? 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 ‘list.Replace’
> ? error: java.lang.NoClassDefFoundError: list/ListProcessor
> ? error: at java.lang.ClassLoader.defineClass1(Native Method)
> ? error: at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> ? 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 ‘list.Replace’
> ? error: java.lang.NoClassDefFoundError: list/ListProcessor
> ? error: at java.lang.ClassLoader.defineClass1(Native Method)
> ? error: at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> ? 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 ‘list.Replace’
>
>


November 19, 2006 | 11:39 am

Hi Ben,

Thanks again for your prompt reply. Much appreciated!

?! From Topher’s mail I understood I have to put it here:

ZIPOD/MyApp/Contents/Resources/java/classes/list/Replace.class

But the classes have to be put in the root of the drive?

Can you point me to a description of what the JVM expects where in a standalone?
Can I set these paths myself?

Best,

Zip

Zip Boterbloem
Media Mechanics
Zwaluwstraat 54
2025 VR Haarlem
The Netherlands
+31627014758
zip@knoware.nl

Op 17-nov-2006, om 16:36 heeft loadbang@cycling74.com het volgende geschreven:

Subject: Re: Re: Re: mxj in standalones question Author: Ben Nevile Date: Fri, 17 November 2006 08:35
Hi Zip,

The errors are clear – the java engine can’t find your list.Replace
class. As Topher said, you have to make sure you maintain the
directory structure for the classes you’re using. Specifically that
means you need ZIPOD/classes/list/Replace.class.

Ben

On 11/17/06, Zip Boterbloem wrote:
>


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