Problem with X11 library.

288 views
Skip to first unread message

Elia Mazzuoli

unread,
May 11, 2015, 4:32:40 AM5/11/15
to jna-...@googlegroups.com
Hi,

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

My script for run application have:

-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.

Timothy Wall

unread,
May 12, 2015, 7:47:11 AM5/12/15
to jna-...@googlegroups.com
Make sure that JNA’s platform.jar is in your class path. That’s where X11$Atom is found.
> --
> You received this message because you are subscribed to the Google Groups "Java Native Access" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jna-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages