• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NoClassDefFoundError when trying to create a CAFString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NoClassDefFoundError when trying to create a CAFString


  • Subject: NoClassDefFoundError when trying to create a CAFString
  • From: Ilya Maykov <email@hidden>
  • Date: Wed, 18 Jun 2003 12:41:46 -0700

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:26 1)
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.
  • Follow-Ups:
    • Re: NoClassDefFoundError when trying to create a CAFString
      • From: Ilya Maykov <email@hidden>
  • Prev by Date: MusicDevice instrumentIDs and presets
  • Next by Date: Re: NoClassDefFoundError when trying to create a CAFString
  • Previous by thread: Re: MusicDevice instrumentIDs and presets
  • Next by thread: Re: NoClassDefFoundError when trying to create a CAFString
  • Index(es):
    • Date
    • Thread