private static String determineFreebsdLibrary ( final String library , final String osName , final String osArch ) { String resourceName ; String platform = null ; String fileExtension = "so" ; switch ( osArch ) { case ARCH_AMD64 : case ARCH_X86_64 : platform = "freebsd-x64" ; break ; default : unsupportedPlatform ( osName , osArch ) ; } resourceName = "/" + platform + "/" + library + "." + fileExtension ; return resourceName ; }
Determine the right FreeBSD library depending on the architecture .