Re: NoClassDefFoundError when trying to create a CAFString
Re: NoClassDefFoundError when trying to create a CAFString
- Subject: Re: NoClassDefFoundError when trying to create a CAFString
- From: Ilya Maykov <email@hidden>
- Date: Wed, 18 Jun 2003 13:10:14 -0700
Ok, ignore my last message, I think i got it to work ... however, i
have one more question. Is there a way to set an environmental variable
under OS X so that i don't have to type that -Xbootclasspath thing? Thx
for any hints.
Ilya Maykov
On Wednesday, June 18, 2003, at 12:41 PM, Ilya Maykov wrote:
Hi everyone,
I'm pretty new to OS X and Apple's CoreMIDI, and I'm working on my
first project that uses these tehnologies. I have some code that
compiles fine, but then crashes at runtime, and I've narrowed the
problem down to this:
When i try to create a CAFString, as in
CAFString s = new CAFString( "blah blah blah" );
the program will crash at runtime. It throws a NoClassDefFoundError,
here's the stack trace:
Exception in thread "main" java.lang.NoClassDefFoundError:
com/apple/mrj/internal/jdirect/ArrayCopy
at
com.apple.audio.util.CAMemoryObject.copyFromArray(CAMemoryObject.java:2
61)
at
com.apple.audio.util.CAFString.allocateNewBuffer(CAFString.java:53)
at com.apple.audio.util.CAFString.<init>(CAFString.java:34)
at test.main(test.java:18)
I've tried the fix when you add the following option to the java
command, but it still fails:
-Xbootclasspath/a:/System/Library/Frameworks/JavaVM.framework/
Versions/1.4.1/Classes/CoreAudioSupport.jar
So, I'm pretty lost at this point ... i searched the archives for the
solution, and it seems that adding the Xbootclasspath thing should fix
it, but it doesn't ... if anyone has any ideas, please help.
Thanks, Ilya Maykov_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.