I have an applicacation that work fine on windows, now I must porting it on linux. All work fine but jna have some problem. I use VLCJ for run VLC and VLCJ use JNA. The error that I have on running my application is:
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/jna/platform/unix/X11$Atom
at uk.co.caprica.vlcj.player.MediaPlayerFactory.<clinit>(MediaPlayerFactory.java:172)
[...]
Caused by: java.lang.ClassNotFoundException: com.sun.jna.platform.unix.X11$Atom
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 4 more
-Djna.library.path = "/usr/lib/i386-linux-gnu" where in my system is the libX11.so library. Any change to the path not solve the problem... There are some suggestions for me?
Thanks.