Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Lavezzi

macrumors member
Original poster
Jul 17, 2008
55
0
Hi guys,

I'm trying to write a simple Java VoIP program using Netbeans on my MBP. Unfortunately I'm having audio driver issues and I'm not sure how to sort it out. I'm getting this error when I try to run my program from inside Netbeans:

2010-03-01 15:33:28.910 java[843:9303] Error loading /Library/Audio/Plug-Ins/HAL/Digidesign CoreAudio.plugin/Contents/MacOS/Digidesign CoreAudio: dlopen(/Library/Audio/Plug-Ins/HAL/Digidesign CoreAudio.plugin/Contents/MacOS/Digidesign CoreAudio, 262): no suitable image found. Did find:
/Library/Audio/Plug-Ins/HAL/Digidesign CoreAudio.plugin/Contents/MacOS/Digidesign CoreAudio: no matching architecture in universal wrapper
2010-03-01 15:33:28.912 java[843:9303] Cannot find function pointer NewDigiCoreAudioPlugIn for factory B8A063B5-2F3D-444A-88CB-D0B8F1B22042 in CFBundle/CFPlugIn 0x10015de70 </Library/Audio/Plug-Ins/HAL/Digidesign CoreAudio.plugin> (bundle, not loaded)

I assume I need to load the right library but i'm not sure where to start?

Thanks
 
no suitable image found. Did find:
/Library/Audio/Plug-Ins/HAL/Digidesign CoreAudio.plugin/Contents/MacOS/Digidesign CoreAudio: no matching architecture in universal wrapper

That's the pivotal information.

It's telling you there's no code for the architecture you're running.

My guess is you're running as x86_64 (64-bit Intel), but the library in question doesn't contain any 64-bit code, only 32-bit (i386 and/or ppc).

You could check this by printing the "os.arch" system property in your Java app. You check the library using the file command in Terminal:
Code:
file "/Library/Audio/Plug-Ins/HAL/Digidesign CoreAudio.plugin/Contents/MacOS/Digidesign CoreAudio"

One possible solution is to specify the -d32 option when you run your program. This tells the JVM to run in 32-bit mode, not 64-bit mode.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.