• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling a dll from Java

 
Devakumar Mahadevan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm getting the following error while calling a Dll created in VB6 using a java program.

Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load librar
y 'simpleDLL': The specified module could not be found.

at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:166)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:239)
at com.sun.jna.Library$Handler.<init>(Library.java:140)
at com.sun.jna.Native.loadLibrary(Native.java:393)
at com.sun.jna.Native.loadLibrary(Native.java:378)
at Main$simpleDLL.<clinit>(Main.java:33)
at Main.main(Main.java:55)


Any ideas will be helpful for me to overcome this issue....
 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like it can't find it.

I'm not sure if it looks in the Windows %PATH% or not.

In Un*x, I remember having to set LD_LIBRARY_PATH when dealing with native Un*x libraries (.so)

WP
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic