Netbeans MBP Audio Issue

Discussion in 'Mac Programming' started by Lavezzi, Mar 1, 2010.

  1. Lavezzi macrumors member

    Joined:
    Jul 17, 2008
    #1
    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:

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

    Thanks
     
  2. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #2
    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.
     

Share This Page