Skip to content

java.lang.ClassNotFoundException: com.sun.jna.Library #98

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Download WebcamStudio
2. `ant clean jar`
3. Run WebcamStudio

What is the expected output?
It launching without exception

What do you see instead?
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: 
com/sun/jna/Library
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:788)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:447)
        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:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at webcamstudio.exporter.vloopback.VideoDevice.openDevice(VideoDevice.java:44)
        at webcamstudio.exporter.vloopback.VideoDevice.loadInfo(VideoDevice.java:38)
        at webcamstudio.exporter.vloopback.VideoDevice.<init>(VideoDevice.java:34)
        at webcamstudio.exporter.vloopback.VideoDevice.getDevices(VideoDevice.java:145)
        at webcamstudio.exporter.vloopback.VideoDevice.getInputDevices(VideoDevice.java:104)
        at webcamstudio.components.OutputPanel.<init>(OutputPanel.java:59)
        at webcamstudio.WebcamStudio.<init>(WebcamStudio.java:56)
        at webcamstudio.WebcamStudio$11.run(WebcamStudio.java:606)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
        at java.awt.EventQueue.access$200(EventQueue.java:103)
        at java.awt.EventQueue$3.run(EventQueue.java:694)
        at java.awt.EventQueue$3.run(EventQueue.java:692)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:447)
        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:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at webcamstudio.exporter.vloopback.VideoDevice.openDevice(VideoDevice.java:44)
        at webcamstudio.exporter.vloopback.VideoDevice.loadInfo(VideoDevice.java:38)
        at webcamstudio.exporter.vloopback.VideoDevice.<init>(VideoDevice.java:34)
        at webcamstudio.exporter.vloopback.VideoDevice.getDevices(VideoDevice.java:145)
        at webcamstudio.exporter.vloopback.VideoDevice.getInputDevices(VideoDevice.java:104)
        at webcamstudio.components.OutputPanel.<init>(OutputPanel.java:59)
        at webcamstudio.WebcamStudio.<init>(WebcamStudio.java:56)
        at webcamstudio.WebcamStudio$11.run(WebcamStudio.java:606)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
        at java.awt.EventQueue.access$200(EventQueue.java:103)
        at java.awt.EventQueue$3.run(EventQueue.java:694)
        at java.awt.EventQueue$3.run(EventQueue.java:692)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: java.lang.ClassNotFoundException: com.sun.jna.Library
        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)
        ... 34 more

The Operating system you are using (Linux, Windows etc)?
Linux <snip> 3.8.0-29-generic #42-Ubuntu SMP Tue Aug 13 19:40:39 UTC 2013 
x86_64 x86_64 x86_64 GNU/Linux


What version of WebcamStudio are you using?
Same issue with both the webcamstudio_0.61.tar.bz2 download as well as the 
latest svn source


What version of Java are you using?
Tried OpenJDK7 25, OpenJDK6, and SunJDK6, all same error


I was able to fix it in the latest source by correcting the manifest, which 
appears to be missing the JNA library.

Original issue reported on code.google.com by Overmind...@gmail.com on 1 Nov 2013 at 10:29

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions