• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error while loading dll files

 
mohan dodderi
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
David M Fairchild
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is just a guess, I'm probably not the best person to reply to you. But is it possible that there are other dll's that the library you are trying to open relies upon? If so you will want to include their location in the java.library.path. It may also be necessary to include the system library files but I'm not sure about that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic