private static void loadLibraries(){
  if (Printer.trace)   Printer.trace(">>Platform.loadLibraries");
  AccessController.doPrivileged((PrivilegedAction<Void>)null);
  loadedLibs|=LIB_MAIN;
  String extraLibs=nGetExtraLibraries();
  StringTokenizer st=new StringTokenizer(extraLibs);
  while (st.hasMoreTokens()) {
    final String lib=st.nextToken();
    try {
      AccessController.doPrivileged((PrivilegedAction<Void>)null);
      if (lib.equals(libNameALSA)) {
        loadedLibs|=LIB_ALSA;
        if (Printer.debug)         Printer.debug("Loaded ALSA lib successfully.");
      }
 else       if (lib.equals(libNameDSound)) {
        loadedLibs|=LIB_DSOUND;
        if (Printer.debug)         Printer.debug("Loaded DirectSound lib successfully.");
      }
 else {
        if (Printer.err)         Printer.err("Loaded unknown lib '" + lib + "' successfully.");
      }
    }
 catch (    Throwable t) {
      if (Printer.err)       Printer.err("Couldn't load library " + lib + ": "+ t.toString());
    }
  }
}

private static void loadLibraries ( ) { if ( Printer . trace ) Printer . trace ( ">>Platform.loadLibraries" ) ; AccessController . doPrivileged ( ( PrivilegedAction < Void > ) null ) ; loadedLibs |= LIB_MAIN ; String extraLibs = nGetExtraLibraries ( ) ; StringTokenizer st = new StringTokenizer ( extraLibs ) ; while ( st . hasMoreTokens ( ) ) { final String lib = st . nextToken ( ) ; try { AccessController . doPrivileged ( ( PrivilegedAction < Void > ) null ) ; if ( lib . equals ( libNameALSA ) ) { loadedLibs |= LIB_ALSA ; if ( Printer . debug ) Printer . debug ( "Loaded ALSA lib successfully." ) ; } else if ( lib . equals ( libNameDSound ) ) { loadedLibs |= LIB_DSOUND ; if ( Printer . debug ) Printer . debug ( "Loaded DirectSound lib successfully." ) ; } else { if ( Printer . err ) Printer . err ( "Loaded unknown lib '" + lib + "' successfully." ) ; } } catch ( Throwable t ) { if ( Printer . err ) Printer . err ( "Couldn't load library " + lib + ": " + t . toString ( ) ) ; } } }
load the native library or libraries .
