Ejemplo n.º 1
0
 static {
   try {
     Native.register("c");
   } catch (NoClassDefFoundError e) {
     logger.warn("JNA not found. native methods (mlockall) will be disabled.");
   } catch (UnsatisfiedLinkError e) {
     logger.warn("unable to link C library. native methods (mlockall) will be disabled.");
   }
 }
 static {
   if (Platform.isSolaris()) {
     System.loadLibrary("nsl");
     System.loadLibrary("socket");
   }
   if (!Platform.isWindows() && !Platform.isWindowsCE()) {
     Native.register("c");
   }
 }
Ejemplo n.º 3
0
 static {
   try {
     Native.register("c");
   } catch (NoClassDefFoundError e) {
     logger.info("JNA not found. Native methods will be disabled.");
   } catch (UnsatisfiedLinkError e) {
     logger.info("Unable to link C library. Native methods will be disabled.");
   } catch (NoSuchMethodError e) {
     logger.warn(
         "Obsolete version of JNA present; unable to register C library. Upgrade to JNA 3.2.7 or later");
   }
 }
Ejemplo n.º 4
0
 private JNAKernel32Library() {
   if (Constants.WINDOWS) {
     try {
       Native.register("kernel32");
       logger.debug("windows/Kernel32 library loaded");
     } catch (NoClassDefFoundError e) {
       logger.warn("JNA not found. native methods and handlers will be disabled.");
     } catch (UnsatisfiedLinkError e) {
       logger.warn(
           "unable to link Windows/Kernel32 library. native methods and handlers will be disabled.");
     }
   }
 }
Ejemplo n.º 5
0
 static {
   Native.register("user32");
 }
Ejemplo n.º 6
0
 static {
   Native.register("c");
 }
Ejemplo n.º 7
0
 // public static final NativeLibrary JNA_NATIVE_LIB =
 // NativeLibrary.getInstance(SQLite.JNA_LIBRARY_NAME);
 static {
   Native.register(JNA_LIBRARY_NAME);
 }
Ejemplo n.º 8
0
 static {
   m_ClibND = (NonDirectCLib) Native.loadLibrary(Platform.C_LIBRARY_NAME, NonDirectCLib.class);
   Native.register(C_lib_DirectMapping.class, NativeLibrary.getInstance(Platform.C_LIBRARY_NAME));
   m_ClibDM = new C_lib_DirectMapping();
   m_Clib = m_ClibDM;
 }
Ejemplo n.º 9
0
 static {
   Native.register("firm");
 }
Ejemplo n.º 10
0
 static {
   Native.register(LIB);
 }