private static String createLibExtension(){
  OSType osType=calculateOS();
switch (osType) {
case APPLE:
    return "jnilib";
case LINUX:
  return "so";
case SUN:
return "so";
case WINDOWS:
return "dll";
}
return "";
}

private static String createLibExtension ( ) { OSType osType = calculateOS ( ) ; switch ( osType ) { case APPLE : return "jnilib" ; case LINUX : return "so" ; case SUN : return "so" ; case WINDOWS : return "dll" ; } return "" ; }
returns the extension for dynamically linked libraries on the current os . that is , returns " jnilib " on apple , " so " on linux and sun , and " dll " on windows .
