代码之家  ›  专栏  ›  技术社区  ›  Daniel Schneller

什么是java.lang.Unsatisfiedlinkerror…(操作失败:14)

  •  2
  • Daniel Schneller  · 技术社区  · 16 年前

    我正在尝试在WindowsCE5专业设备上部署我们的ERCP(嵌入式富客户端平台)应用程序。当启动应用程序时,ercp演示应用程序在j9 vm上运行良好,但出现以下异常:

    !ENTRY org.eclipse.osgi 4 0 2008-09-24 11:01:15.088
    !MESSAGE An error occurred while automatically activating bundle org.eclipse.ercp.swt (63).
    !STACK 0
    org.osgi.framework.BundleException: Exception in org.eclipse.ercp.swt.Activator.start() of bundle org.eclipse.ercp.swt.
    [...]
    Caused by: java.lang.UnsatisfiedLinkError: \eRCP\plugins\org.eclipse.ercp.swt.wince5_1.2.0\os\win32\arm\eswt-converged.dll (Operation Failed: 14)
    at java.lang.ClassLoader.loadLibraryWithPath(Unknown Source)
    at java.lang.ClassLoader.loadLibraryWithClassLoader(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at org.eclipse.ercp.swt.Activator.start(Unknown Source)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Unknown Source)
    ... 33 more
    

    我在网上找不到“操作失败:14”的意思。我想它可能是本机函数的一些返回值,但不能确定。动态链接库 出现在指定的位置,我还试图将其放在\j9\bin目录中。

    1 回复  |  直到 16 年前
        1
  •  2
  •   Lars Westergren    16 年前

    是的,Java异常从一个JNI调用中封装了一个本地异常,但它失败了。由于某些原因,可能无法在设备上正确加载或执行dll。操作系统版本错误?损坏的dll文件?读取/执行权限不正确?有很多可能的原因。

    编辑-似乎其他人也有类似的问题。可能是虫子吧?看看你能不能从开发者那里得到什么: http://www.eclipsezone.com/eclipse/forums/t111726.html