Archived

This forum has been archived. Please start a new discussion on GitHub.

ice-freeze test fail?

when test the $ICE_HOME\test\freeze\dbmap,report error

java.lang.UnsatisfiedLinkError:$ICE_HOME\bin\libdb_java42.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at com.sleepycat.db.db_javaJNI.<clinit>(db_javaJNI.java:29)
at com.sleepycat.db.DbEnv.<init>(DbEnv.java:1081)
at Freeze.SharedDbEnv.<init>(SharedDbEnv.java:231)
at Freeze.SharedDbEnv.get(SharedDbEnv.java:31)
at Freeze.ConnectionI.<init>(ConnectionI.java:113)
at Freeze.Util.createConnection(Util.java:38)
at src.cient.main(cient.java:9)

I have indicate the vm parameters as follow:
-Djava.library.path=$ICE_HOME\Ice-1.3.0\bin

So the $ICE_HOME\Ice-1.3.0\bin include the libdb_java42.dll.


why?

Comments

  • mes
    mes California
    Hi,

    You should add $ICE_HOME\bin to your PATH. Also, you should probably download the updated Ice.jar file I posted here.

    Take care,
    - Mark
  • thanks

    I have solve the problem by using the ice.jar you mailed to me.
    But it seems the vm parameter "-Djava.library.path=$ICE_HOME\bin" is
    redundant. I can obtain the same right answer without the parameter.