I wrote a packet capture program (jpcap) in java. It runs normally in windows, but when I run it in eclipse under linux (kali), I get an error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no atk- wrapper in java.library.path
There is no error in the code, the jpcap package has been imported, and openjdk is used. Searching on Google and Baidu has no results. Please give me some advice. Thank you very much!
高洛峰2017-05-17 10:03:52
Replacing openjdk with sun jdk in eclipse can successfully run the program. It may be that the jre of openjdk lacks packages or path problems. It feels troublesome. Just change to jdk (jre).