code: @SuppressFBWarnings("DMI_HARDCODED_ABSOLUTE_FILENAME")
      public static void fixPlatformPaths() {
          if (System.getProperty(LIB_PROP) == null) {
              // Set necessary parameters for seamless PC/SC access.
              // http://ludovicrousseau.blogspot.com.es/2013/03/oracle-javaxsmartcardio-failures.html
              if (System.getProperty("os.name").equalsIgnoreCase("Linux")) {
                  // Only try loading 64b paths if JVM can use them.
                  if (System.getProperty("os.arch").contains("64")) {
                      if (new File(debian64_path).exists()) {
                          System.setProperty(LIB_PROP, debian64_path);
                      } else if (new File(fedora64_path).exists()) {
                          System.setProperty(LIB_PROP, fedora64_path);
                      } else if (new File(ubuntu64_path).exists()) {
                          System.setProperty(LIB_PROP, ubuntu64_path);
                      }
                  } else if (new File(ubuntu_path).exists()) {
                      System.setProperty(LIB_PROP, ubuntu_path);
                  } else if (new File(ubuntu32_path).exists()) {
                      System.setProperty(LIB_PROP, ubuntu32_path);
                  } else if (new File(raspbian_path).exists()) {
                      System.setProperty(LIB_PROP, raspbian_path);
                  } else {
                      // XXX: dlopen() works properly on Debian OpenJDK 7
                      // System.err.println("Hint: pcsc-lite probably missing.");
                  }
              } else if (System.getProperty("os.name").equalsIgnoreCase("FreeBSD")) {
                  if (new File(freebsd_path).exists()) {
                      System.setProperty(LIB_PROP, freebsd_path);
                  } else {
                      System.err.println("Hint: pcsc-lite is missing. pkg install devel/libccid");
                  }
              }
          } else {
              // TODO: display some helpful information?
          }
      }
docs: Locates PC/SC shared library on the system and automagically sets system properties so that SunPCSC
  could find the smart card service. Call this before acquiring your TerminalFactory.