java.lang.UnsatisfiedLinkError错误

waterStreaming 2009-05-11 10:33:10
开发用的是Eclipse和tomcat,工程为web工程。
报错页面内容为:
HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Filter execution threw an exception


root cause

java.lang.UnsatisfiedLinkError: ProcessUrlJ
QMapLJni.ProcessUrlJ(Native Method)
a.doFilter(Unknown Source)

控制台报的错误内容为

信息: http://192.168.1.29:8080/xinneng_web/t.jsp
Can't find library QMapLServer.DLL
java.lang.UnsatisfiedLinkError: no QMapLServer in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at QMapLJni. <clinit>(Unknown Source)
at a.doFilter(Unknown Source)

请问如何解决。
...全文
187 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
[Quote=引用楼主 waterStreaming 的帖子:]
开发用的是Eclipse和tomcat,工程为web工程。
报错页面内容为:
HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Filter execution threw an exception…
[/Quote]
或者你坚持一下
javah 时有没有使用完整包名.类名
没加包名也会报这种错误

  • 打赏
  • 举报
回复
[Quote=引用楼主 waterStreaming 的帖子:]
开发用的是Eclipse和tomcat,工程为web工程。
报错页面内容为:
HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Filter execution threw an exception…
[/Quote]
Can't find library QMapLServer.DLL

UnsatisfiedLinkError是由于系统找不到JNI所需的某个DLL文件,
可以将所有DLL放在系统path能找到的地方,建议目录为system或system32.
waterStreaming 2009-05-11
  • 打赏
  • 举报
回复
那该如何解决?
s_Prince 2009-05-11
  • 打赏
  • 举报
回复
当 Java 虚拟机无法找到声明为 native 的方法的适当本地语言定义时,抛出该错误
waterStreaming 2009-05-11
  • 打赏
  • 举报
回复
解决,就是把.dll放在String path=System.getProperty("java.library.path");所能指出的路径下。
..\Apache Software Foundation\Tomcat 5.5\bin或../../system32

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧