[英]eclipse/java — java.lang.UnsatisfiedLinkError: no ndbclient in java.library.path
[英]ndbclient native library is missing in Mysql Cluster installation
嘗試運行基於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工作?
7.4版本中有2個軟件包:ZIP和MSI。 我在ZIP包中找到了庫。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.