Class JnaTools


  • public final class JnaTools
    extends java.lang.Object
    JNA helper tools.
    Since:
    2.2
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private JnaTools()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void setBugWorkaroundProperty()
      Set a the jna.nosys to true to avoid the "There is an incompatible JNA native library installed on this system" error from JNA.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JnaTools

        private JnaTools()
    • Method Detail

      • setBugWorkaroundProperty

        public static void setBugWorkaroundProperty()
        Set a the jna.nosys to true to avoid the "There is an incompatible JNA native library installed on this system" error from JNA. NOTE: only call this from main() methods, as setting system properties in other contexts (web apps etc.) can lead to strange effects.