Mysql Cluster安装中缺少ndbclient本机库

时间:2016-05-31 11:26:11

标签: java mysql mysql-cluster

尝试运行基于ClusterJ的Java应用程序时出现以下错误:

java.lang.UnsatisfiedLinkError: no ndbclient in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1865)
    at java.lang.Runtime.loadLibrary0(Runtime.java:870)
    at java.lang.System.loadLibrary(System.java:1122)
    at com.mysql.clusterj.tie.ClusterConnectionServiceImpl.loadSystemLibrary(ClusterConnectionServiceImpl.java:68)
    at com.mysql.clusterj.tie.ClusterConnectionServiceImpl.create(ClusterConnectionServiceImpl.java:87)
    at com.mysql.clusterj.core.SessionFactoryImpl.createClusterConnection(SessionFactoryImpl.java:263)
    at com.mysql.clusterj.core.SessionFactoryImpl.createClusterConnectionPool(SessionFactoryImpl.java:245)
    at com.mysql.clusterj.core.SessionFactoryImpl.<init>(SessionFactoryImpl.java:193)
    at com.mysql.clusterj.core.SessionFactoryImpl.getSessionFactory(SessionFactoryImpl.java:139)
    at com.mysql.clusterj.core.SessionFactoryServiceImpl.getSessionFactory(SessionFactoryServiceImpl.java:36)
    at com.mysql.clusterj.core.SessionFactoryServiceImpl.getSessionFactory(SessionFactoryServiceImpl.java:27)
    at com.mysql.clusterj.ClusterJHelper.getSessionFactory(ClusterJHelper.java:72)
    at com.mysql.clusterj.ClusterJHelper.getSessionFactory(ClusterJHelper.java:57)

在Windows下的MySql Cluster 7.4安装中,我在lib目录中有ndbclient_static.lib文件。 Java无法像在MySql手册中表达的那样读取lib文件。据我所知,我应该有ndbclient.dll但它丢失了。如何继续使ClusterJ工作?

1 个答案:

答案 0 :(得分:0)

7.4版本中有2个软件包:ZIP和MSI。我在ZIP包中找到了库。