IKVM

 
    $ ikvmc -target:library E:\jt400.jar
    $ ikvmc -target:library -reference:E:\jt400.dll E:\FTU.jar
   
    $ ikvmc -target:library E:\swing-layout-1.0.jar
    $ ikvmc -target:library -reference:E:\jt400.dll -reference:E:\swing-layout-1.0.dll E:\FTU.jar

 the type java.lang.object is defined in assembly
 The type initializer for 'sun.util.calendar.ZoneInfoFile' throw exception

 The type 'java.lang.Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'IKVM.OpenJDK.ClassLibrary, Version=0.38.0.2, Culture=neutral,         PublicKeyToken=13235d27fcbfff58'. E:\EDriver\MyProject\Github\VS\Common\Tests\TestPythonHelper.cs 17 13 Common

 遇到这种错误,把ITVM下面所有dll加进去。。。
  
   因为是用ikvm转换的,所以还要调用以下几个dll文件(这里用的是ikvm8)
IKVM.OpenJDK.Core.dll
IKVM.Runtime.dll
IKVM.Runtime.JNI.dll
IKVM.OpenJDK.ClassLibrary.dll
IKVM.OpenJDK.Security


这些文件都可以在ikvm\bin文件夹中找到。

 

posted on 2017-12-27 16:50  白马酒凉  阅读(526)  评论(0编辑  收藏  举报

导航