2016-02-19 99 views
0

我正在嘗試使用jni4net jar來調用.net dll方法。該DLL正在加載,代理文件夾被生成,但執行時得到以下錯誤。 enter image description here來自Java的調用.net dll方法

代碼錯誤已附加。

+2

請張貼錯誤的_text_的Javadoc,不是一個形象。一般來說,你在問題中付出的努力越多(看看幫助和常見問題解答),越多的人能夠並願意提供幫助。 – Thomas

+0

它不會幫助你,但調用finally代碼塊的代碼是一個奇怪的想法:如果DLL加載失敗它將被執行,你會得到一個錯誤。 – StephaneM

+0

以下是錯誤:異常在線程 「主要」 java.lang.UnsatisfiedLinkError中:mathfunc.ClsMathFunc .__ ctorClsMathFunc0(LNET/SF/jni4net /注射/ IClrProxy;)V \t在mathfunc.ClsMathFunc .__ ctorClsMathFunc0(本機方法) \t在mathfunc.ClsMathFunc。 (ClsMathFunc.java:25) \t at com.java.Test.main(Test.java:41) –

回答