There is an incompatible JNA native library installed on this system. #125

Closed
Klaus-schwarzkopf opened this Issue Nov 2, 2012 · 2 comments

3 participants

@Klaus-schwarzkopf

I get the following stack trace with the new version 0.9.6.1. The old version 0.9.6.0 works.

So i added -Djna.nosys=true to the run.sh and the new one can capture.

java $MEMSETTINGS  -Djna.nosys=true -Dnl.lxtreme.ols.bundle.dir="$PLUGINDIR" -DPlastic.defaultTheme=SkyBluer -cp "$CLASSPATH" nl.lxtreme.ols.runner.Runner

Thanks to JaWi for the quick help!

Regards,

Klaus

Java information: Sun Microsystems Inc. v1.6.0_24
Host information: Linux, 3.2.0-32-generic (amd64)
ubuntu 12.04

java.lang.Error: 

There is an incompatible JNA native library installed on this system.
To resolve this issue you may do one of the following:
 - remove or uninstall the offending library
 - set the system property jna.nosys=true
 - set jna.boot.library.path to include the path to the version of the 
   jnidispatch library included with the JNA jar file you are using

    at com.sun.jna.Native.<clinit>(Native.java:142)
    at jtermios.linux.JTermiosImpl.<clinit>(JTermiosImpl.java:66)
    at jtermios.JTermios.<clinit>(JTermios.java:284)
    at purejavacomm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:89)
    at nl.lxtreme.ols.io.serial.CommConnectionFactory.getSerialPort(CommConnectionFactory.java:135)
(snip)
@jawi
Owner

I've added a FAQ entry on this while there's no final fix available yet. See: https://github.com/jawi/ols/wiki/FAQ

@jawi jawi added a commit that referenced this issue Jan 20, 2013
@jawi Fixed two issues:
- #125: add 'jna.nosys=true' as system property will prevent JNA
  from using any system-installed JNA libraries;
  - #140: add more advanced search for Java binaries on Windows
    (should work on Windows8 as well).
46e10f6
@jawi jawi added a commit that referenced this issue Jan 20, 2013
@jawi Fixed two issues:
- #125: add 'jna.nosys=true' as system property will prevent JNA
  from using any system-installed JNA libraries;
- #140: add more advanced search for Java binaries on Windows
  (should work on Windows8 as well).
ddea7f6
@jawi jawi closed this Jan 20, 2013
@akash3456

what unix command is required to remove jna native library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment