Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

Comments

@Klaus-schwarzkopf
Copy link

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
Copy link
Owner

jawi commented Nov 2, 2012

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 pushed a commit that referenced this issue Jan 20, 2013
- #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).
jawi pushed a commit that referenced this issue Jan 20, 2013
- #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).
@jawi jawi closed this as completed Jan 20, 2013
@akash3456
Copy link

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
Projects
None yet
Development

No branches or pull requests

3 participants