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: Scott Ruda <email@hidden>
- Date: Wed, 18 Jun 2003 15:31:20 -0700
On Wednesday, June 18, 2003, at 12:45 PM, Ilya Maykov
<email@hidden> wrote:
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
6
[...]
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
I've found that you often times have to throw away the entire build
directory to get PB to fully rebuild everything. Even though Clean
Target seems to clear out the build directory I think something in the
project files themselves don't get fully rehashed. Make sure you close
the project file first (or maybe best to actually quit PB) since it can
get confused if you throw away the build directory while the project is
open.
I seem to get project out-of-sync problems like this a lot with PB 2.1
in many areas. E.g. adding and deleting new directories, libraries or
resources, changing the Manifest file and changing other project level
stuff doesn't always seem to propagate to everything that needs
rehashing. I need to throw away the build directory at least 3 or 4
times a week otherwise I get stale stuff in my builds. Hopefully these
kinds of things will get resolved in the presumed new tools that will
be coming out next week. There have been a number of hints of something
'new and wonderful' coming out soon.
-scott
_______________________________________________
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.