public static void load() { libraryNames = PlatformDependencies.currentLibraryNames; libraryExtensions = PlatformDependencies.currentLibraryExtension; String dir = ""; try { dir = PropertiesBean.getProperty(PropertiesNames.RESOURCES_DIR /*"dirs.resources"*/); } catch (NoSuchPropertyException e) { // TODO Auto-generated catch block e.printStackTrace(); logger.warning(e.toString()); dir = ".\\resources"; } for (int i = 0; i < libraryNames.length; ++i) { String latestLib = getLatestFileName(dir, libraryNames[i], libraryExtensions); try { System.load(latestLib); logger.fine("loaded " + latestLib); // debug } catch (Throwable e1) { logger.warning("Error While loading library " + latestLib + ": " + e1.toString()); } } // // initialize ResourceManager with resources from resources directory // ResourceManager.addResources(dir); }