如何在eclipse插件的路径中设置dll

时间:2023-02-05 17:56:52

I am building an eclipse rcp plugin. It needs to load a native dll. I have the dlls in the path env var, iam using windows 7. I have also checked with System.getProperty("java.library.path") and i can see the folder in which the dlls are present. But still when i execute it i get the following error.

我正在构建一个eclipse rcp插件。它需要加载本机DLL。我在路径env var中使用dll,iam使用Windows 7.我还检查了System.getProperty(“java.library.path”),我可以看到dll所在的文件夹。但是当我执行它时,我得到以下错误。

java.lang.UnsatisfiedLinkError: com.cordys.debug.nom.node.Node.writeBytes(III)[B
    at com.cordys.debug.nom.node.Node.writeBytes(Native Method)
    at com.cordys.debug.nom.node.Node.write(Node.java:137)
    at com.cordys.debug.nom.node.Node.write(Node.java:103)
    at com.cordys.debug.nom.node.Node.writeToString(Node.java:65)
    at org.eclipse.jdt.internal.debug.ui.actions.PopupDisplayNodeAction.displayStringResult(PopupDisplayNodeAction.java:115)
    at org.eclipse.jdt.internal.debug.ui.actions.DisplayAction$2.detailComputed(DisplayAction.java:72)
    at org.eclipse.jdt.internal.debug.ui.JavaDetailFormattersManager$EvaluationListener.valueToString(JavaDetailFormattersManager.java:652)
    at org.eclipse.jdt.internal.debug.ui.JavaDetailFormattersManager.resolveFormatter(JavaDetailFormattersManager.java:170)
    at org.eclipse.jdt.internal.debug.ui.JavaDetailFormattersManager.access$1(JavaDetailFormattersManager.java:143)
    at org.eclipse.jdt.internal.debug.ui.JavaDetailFormattersManager$2.run(JavaDetailFormattersManager.java:138)
    at org.eclipse.jdt.internal.debug.core.model.JDIThread$ThreadJob.run(JDIThread.java:2756)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Anyone out there have a clue how to set the dlls in path for eclipse plugin?

有没有人知道如何在eclipse插件的路径中设置dll?

Many thanks in advance.

提前谢谢了。

1 个解决方案

#1


0  

Here Using shared libraries with Eclipse RCP you can find a nice instruction how to do it - assuming that you can build feature that contains your plug-in.

这里使用Eclipse RCP的共享库,您可以找到一个很好的指令 - 假设您可以构建包含插件的功能。

#1


0  

Here Using shared libraries with Eclipse RCP you can find a nice instruction how to do it - assuming that you can build feature that contains your plug-in.

这里使用Eclipse RCP的共享库,您可以找到一个很好的指令 - 假设您可以构建包含插件的功能。