public static List < String > osLibs ( ) { String OS = System . getProperty ( "os.name" ) . toLowerCase ( ) ; if ( OS . indexOf ( "win" ) >= 0 ) { return WINDOWS_DYNAMIC_LIBS ; } else if ( OS . indexOf ( "mac" ) >= 0 ) { return MAC_DYNAMIC_LIBS ; } else if ( OS . indexOf ( "nix" ) >= 0 || OS . indexOf ( "nux" ) >= 0 || OS . indexOf ( "aix" ) > 0 ) { return UNIX_DYNAMIC_LIBS ; } else { throw new AsperaLibraryLoadException ( "OS is not supported for Aspera" ) ; } }
Determine which os the jvm is running on