英文:
Cassandra -f Can't find dependent libraries java.lang.UnsatisfiedLinkError
问题
Exception (java.lang.UnsatisfiedLinkError) encountered during startup:
启动过程中遇到异常(java.lang.UnsatisfiedLinkError):
C:\Users\chand\AppData\Local\Temp\jna-94623570\jna4591461042706372094.dll: Can't find dependent libraries
C:\Users\chand\AppData\Local\Temp\jna-94623570\jna4591461042706372094.dll: 找不到依赖库
java.lang.UnsatisfiedLinkError: C:\Users\chand\AppData\Local\Temp\jna-94623570\jna4591461042706372094.dll: Can't find dependent libraries
java.lang.UnsatisfiedLinkError: C:\Users\chand\AppData\Local\Temp\jna-94623570\jna4591461042706372094.dll: 找不到依赖库
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1817)
at java.lang.Runtime.load0(Runtime.java:810)
at java.lang.System.load(System.java:1086)
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:851)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:826)
at com.sun.jna.Native.
at org.apache.cassandra.utils.WindowsTimer.
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:606)
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:789)
ERROR 14:10:52 Exception encountered during startup
错误 14:10:52 启动过程中遇到异常
java.lang.UnsatisfiedLinkError: C:\Users\chand\AppData\Local\Temp\jna-94623570\jna4591461042706372094.dll: Can't find dependent libraries
java.lang.UnsatisfiedLinkError: C:\Users\chand\AppData\Local\Temp\jna-94623570\jna4591461042706372094.dll: 找不到依赖库
at java.lang.ClassLoader$NativeLibrary.load(Native Method) ~[na:1.8.0_261]
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934) ~[na:1.8.0_261]
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1817) ~[na:1.8.0_261]
at java.lang.Runtime.load0(Runtime.java:810) ~[na:1.8.0_261]
at java.lang.System.load(System.java:1086) ~[na:1.8.0_261]
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:851) ~[jna-4.2.2.jar:4.2.2 (b0)]
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:826) ~[jna-4.2.2.jar:4.2.2 (b0)]
at com.sun.jna.Native.
at org.apache.cassandra.utils.WindowsTimer.
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:606) [apache-cassandra-3.0.22.jar:3.0.22]
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:789) [apache-cassandra-3.0.22.jar:3.0.22]
Even I tried with different versions of Cassandra but still I was getting the same error. Any fix would be appreciated
即使我尝试了不同版本的Cassandra,但仍然遇到了相同的错误。任何修复方法都将不胜感激
Update:
更新:
OS Windows 10
操作系统:Windows 10
java version "1.8.0_261"
Java版本:"1.8.0_261"
Java(TM) SE Runtime Environment (build 1.8.0_261-b12)
Java(TM) SE Runtime Environment(版本1.8.0_261-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)
Java HotSpot(TM) 64-Bit Server VM(版本25.261-b12,混合模式)
Python 2.7.18
Python版本:2.7.18
apache-cassandra-3.0.22
apache-cassandra-3.0.22
Above are system and application version
以上是系统和应用程序版本
英文:
Exception (java.lang.UnsatisfiedLinkError) encountered during startup:
C:\Users\chand\AppData\Local\Temp\jna-94623570\jna4591461042706372094.dll: Can't find dependent libraries
java.lang.UnsatisfiedLinkError: C:\Users\chand\AppData\Local\Temp\jna-94623570\jna4591461042706372094.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1817)
at java.lang.Runtime.load0(Runtime.java:810)
at java.lang.System.load(System.java:1086)
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:851)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:826)
at com.sun.jna.Native.<clinit>(Native.java:140)
at org.apache.cassandra.utils.WindowsTimer.<clinit>(WindowsTimer.java:35)
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:606)
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:789)
ERROR 14:10:52 Exception encountered during startup
java.lang.UnsatisfiedLinkError: C:\Users\chand\AppData\Local\Temp\jna-94623570\jna4591461042706372094.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method) ~[na:1.8.0_261]
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934) ~[na:1.8.0_261]
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1817) ~[na:1.8.0_261]
at java.lang.Runtime.load0(Runtime.java:810) ~[na:1.8.0_261]
at java.lang.System.load(System.java:1086) ~[na:1.8.0_261]
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:851) ~[jna-4.2.2.jar:4.2.2 (b0)]
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:826) ~[jna-4.2.2.jar:4.2.2 (b0)]
at com.sun.jna.Native.<clinit>(Native.java:140) ~[jna-4.2.2.jar:4.2.2 (b0)]
at org.apache.cassandra.utils.WindowsTimer.<clinit>(WindowsTimer.java:35) ~[apache-cassandra-3.0.22.jar:3.0.22]
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:606) [apache-
cassandra-3.0.22.jar:3.0.22]
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:789) [apache-cassandra-3.0.22.jar:3.0.22]
Even I tried with different versions of Cassandra but still I was getting the same error. Any fix would be appreciated
Update:
OS Windows 10
java version "1.8.0_261"
Java(TM) SE Runtime Environment (build 1.8.0_261-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)
Python 2.7.18
apache-cassandra-3.0.22
Above are system and application version
答案1
得分: 3
我曾经遇到过类似的问题,这是因为使用了AdoptOpenJdk,后来我切换到了Red Hat JDK,然后Cassandra开始正常工作。
英文:
I had a similar issue and this was due to AdoptOpenJdk and I switched to Red Hat JDK and the cassandra started working.
答案2
得分: 0
下载红帽开放式JDK 1.8.0_282
Cassandra现在将会正常工作。
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论