1 package org.simgrid.msg;
3 public final class NativeLib {
4 public static String getPath() {
5 String prefix = "NATIVE";
6 String os = System.getProperty("os.name");
7 String arch = System.getProperty("os.arch");
9 if (os.toLowerCase().startsWith("^win"))
11 else if (os.contains("OS X"))
14 if (arch.matches("^i[3-6]86$"))
16 else if (arch.equalsIgnoreCase("amd64"))
19 os = os.replace(' ', '_');
20 arch = arch.replace(' ', '_');
22 return prefix + "/" + os + "/" + arch + "/";
25 public static void main(String[] args) {
26 System.out.println(getPath());