posted 19 years ago
hai i am trying to load a dll file using System.load()
i tried with options
code is......
System.setProperty("java.library.path", "C:\\vitalware\\libs");
System.load("C:\\vitalware\\libs\\SchillerEkgDevice.dll");
But it is throwing the following error, i am really stuck here pls help me.
java.lang.UnsatisfiedLinkError: C:\vitalware\libs\SchillerEkgDevice.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at EkgDevice.<init>(EkgDevice.java:82)
at VitalView.onSetupClicked(VitalView.java:337)
at VitalView$1.actionPerformed(VitalView.java:1527)
at java.awt.Button.processActionEvent(Unknown Source)
at java.awt.Button.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)