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:EDriverMyProjectGithubVSCommonTestsTestPythonHelper.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


这些文件都可以在ikvmin文件夹中找到。

原文地址:https://www.cnblogs.com/sui84/p/8126602.html