public static void loadDependentLibraries() {
String arch = System.getProperty("os.arch");
String name = System.getProperty("os.name");
LibraryLoader loader = new LibraryLoader();
if (name.startsWith("Windows") && arch.equals("amd64")) {
loader.loadLibrary("libgcc_s_sjlj-1", false);
loader.loadLibrary("libgfortran-3", false);
} else if (name.startsWith("Windows") && arch.equals("x86")) {
loader.loadLibrary("libgcc_s_dw2-1", false);
loader.loadLibrary("libgfortran-3", false);
}
}