java.lang.NoClassDefFoundError: com/sun/jna/Library

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Look if your classpath is correct, and check if the versions of your libraries match the version you described in your pom.xml

java.lang.NoClassDefFoundError: com/sun/jna/Library
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
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:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at webcamstudio.exporter.vloopback.VideoDevice.openDevice(VideoDevice.java:46)
at webcamstudio.exporter.vloopback.VideoDevice.loadInfo(VideoDevice.java:40)
at webcamstudio.exporter.vloopback.VideoDevice.(VideoDevice.java:36)
at webcamstudio.exporter.vloopback.VideoDevice.getDevices(VideoDevice.java:147)
at webcamstudio.exporter.vloopback.VideoDevice.getInputDevices(VideoDevice.java:106)
at webcamstudio.components.OutputPanel.paintWSCamButtons(OutputPanel.java:588)
at webcamstudio.components.OutputPanel.(OutputPanel.java:96)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.