can any one help me with this error message .

while try to compile project in eclipse using jNetpcap API

I followed all the steps mentioned on the website below ,how to setup the environment on Debian distribution

http://jnetpcap.com/compile/debian

though I still get the following error message

choosedevice ... OpenJDK 64-Bit Server VM warning: You have loaded library /usr/lib/libjnetpcap.so.1.3.b0003 which might have disabled stack guard. The VM will try to fix the stack guard now. It's highly recommended that you fix the library with 'execstack -c ', or link it with '-z noexecstack'. Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/libjnetpcap.so.1.3.b0003: /usr/lib/libjnetpcap.so.1.3.b0003: mauvaise classe ELF : ELFCLASS32 (Possible cause: architecture word width mismatch) at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1880) at java.lang.Runtime.loadLibrary0(Runtime.java:849) at java.lang.System.loadLibrary(System.java:1088) at org.jnetpcap.Pcap.(Unknown Source) at main.Main_app.choosedevice(Main_app.java:74) at main.Main_app.main(Main_app.java:273)

By the way I tried to execute " execstac -c " it doesn't work at all Also I spent days trying to figure out the solution , the only conclusion i come up with so far , is i need to use libjnetpcap.so (64 bit) since i have 64 bit architecture on my Debian . so is that what i need to do ?

PS : I can't find any ".deb" to install this library for 64 bit.

share|improve this question
2  
If you want to use a 32 bit native library, you must use a 32 bit jvm. – Brett Okken Jun 22 '14 at 21:23
    
is there any other solution ? using JVM 64 bit – Sam Ben Jun 23 '14 at 13:03
1  
Get 64 bit version of the native library - check in /usr/lib64 rather than /usr/lib. – Brett Okken Jun 23 '14 at 13:11
    
You may need to check your LD_LIBRARY_PATH environment variable. If you are running with a 64 bit jvm, then /usr/lib should not be part of the LD_LIBRARY_PATH and /usr/lib64 should be. – Brett Okken Jun 23 '14 at 13:15
    
@BrettOkken: I have a similar issue in RHEL running 32-bit libraries. How can I use a 32 bit JVM on RHEL 7? – Kevin Jan 20 '16 at 21:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.