Beispiel #1
0
  public boolean available() {
    if (loaded) return available;

    System.out.println(System.getProperty("os.name"));

    if (System.getProperty("os.name").indexOf("Win") >= 0) {
      if (!loaded) available = loadLibrary();
    }

    loaded = true;

    return available;
  }
Beispiel #2
0
 private static boolean loadLibrary() {
   try {
     System.loadLibrary("timer");
     return true;
   } catch (Throwable e) {
     e.printStackTrace();
     return false;
   }
 }