Caused by: java.lang.UnsatisfiedLinkError: no WindowsDriver in java.library.path
异常如下:
Java代码- Caused by: java.lang.UnsatisfiedLinkError: no WindowsDriver in java.library.path
- at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
- at java.lang.Runtime.loadLibrary0(Runtime.java:822)
- at java.lang.System.loadLibrary(System.java:993)
- at jdo.device.WindowsDriver.<clinit>(WindowsDriver.java:9)
- at com.jh.action.DSystemAction.checkKey(DSystemAction.java:85)
- ... 22 more
- Caused by: java.lang.UnsatisfiedLinkError: no WindowsDriver in java.library.path
- at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
- at java.lang.Runtime.loadLibrary0(Runtime.java:822)
- at java.lang.System.loadLibrary(System.java:993)
- at jdo.device.WindowsDriver.<clinit>(WindowsDriver.java:9)
- at com.jh.action.DSystemAction.checkKey(DSystemAction.java:85)
- ... 22 more
复制代码 出现这个异常一般是没有找到相应的.dll文件。我的这个异常是在myeclipse中启动tomcat出现。
解决办法很简单,把相应的dll文件放到jdk的bin中即可。我的是把WindowsDriver.dll放到jdk的bin中 |