#75 Typo: loading 64bit jacob dll

1.14.1
closed-fixed
nobody
Jacob Java (22)
5
2008-04-24
2008-03-19
BB
No

This refers to version: 1.14:

When using JACOB in 64bit environment without providing parameters it will try to load the default value for JACOB dll which is: "jacob-1.14- x64.dll" (blank before x64).

The file provided is called "jacob-1.14-x64.dll" (no blank).

Hence this will generate an error that the library could not be found:
"Exception in thread "main" java.lang.UnsatisfiedLinkError: no jacob-1.14- x64 in
java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at com.jacob.com.LibraryLoader.loadJacobLibrary(LibraryLoader.java:180)
at com.jacob.com.JacobObject.<clinit>(JacobObject.java:108)
at ApiCallCalculateTest.export(ApiCallCalculateTest.java:26)
at ApiCallCalculateTest.main(ApiCallCalculateTest.java:17)"

There are 2 ways for a workaround:
1) Rename given "jacob-1.14-x64.dll" to "jacob-1.14- x64.dll"
2) Fix the blank in com.jacob.com.LibraryLoader.getPreferredDLLName(), line 198 and recompile.

Discussion

  • clay_shooter
    clay_shooter
    2008-04-24

    Logged In: YES
    user_id=1189284
    Originator: NO

    Fixed in 1.14.1

     
  • clay_shooter
    clay_shooter
    2008-04-24

    • milestone: --> 1.14.1
    • status: open --> closed-fixed