【问题标题】:What is java.lang.UnsatisfiedLinkError ... (Operation Failed: 14)什么是 java.lang.UnsatisfiedLinkError ...(操作失败:14)
【发布时间】:2010-09-12 15:56:17
【问题描述】:

我正在尝试在 Windows CE5 Professional 设备上部署我们的 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”的含义。我想这可能是本机函数的一些返回值,但不能确定。 DLL is 出现在指定的位置,我也尝试将它放在 \j9\bin 目录中。

【问题讨论】:

    标签: java windows-mobile mobile rcp


    【解决方案1】:

    是的,java 异常包装了来自 JNI 调用的本机异常,该调用失败了。由于某种原因,DLL 可能无法在您的设备上正确加载或执行。操作系统版本错误?损坏的DLL文件?不正确的读取/执行权限?有很多可能的原因。

    edit - 似乎其他人也有类似的问题。也许是 SWT 错误?看看你是否可以从这里的开发者那里得到任何东西: http://www.eclipsezone.com/eclipse/forums/t111726.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-01-06
      • 1970-01-01
      • 1970-01-01
      • 2023-03-08
      • 2019-06-22
      • 1970-01-01
      • 1970-01-01
      • 2023-03-26
      相关资源
      最近更新 更多